summaryrefslogtreecommitdiff
path: root/src/server.cpp
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-25 15:07:27 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-25 15:07:27 +0000
commit77b0de3fedf130ce0d3b50bb2a2e8d98dcf5d3f4 (patch)
tree4c877dd9e3600ae64c98445201b40775495e2c47 /src/server.cpp
parentb9658bfe6d45e78136139f50edabb54caba8bdf4 (diff)
Begin move of rehash to server.cpp - broken rehash from cmdline for now.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7563 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/server.cpp')
-rw-r--r--src/server.cpp26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/server.cpp b/src/server.cpp
index 003ed044f..2ab452fc8 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -13,6 +13,30 @@
#include "inspircd.h"
+void InspIRCd::Rehash(int status)
+{
+/*
+ SI->WriteOpers("*** Rehashing config file %s due to SIGHUP",ServerConfig::CleanFilename(SI->ConfigFileName));
+ SI->CloseLog();
+ SI->OpenLog(SI->Config->argv, SI->Config->argc);
+ SI->RehashUsersAndChans();
+ FOREACH_MOD_I(SI, I_OnGarbageCollect, OnGarbageCollect());
+ SI->Config->Read(false,NULL);
+ SI->ResetMaxBans();
+ SI->Res->Rehash();
+ FOREACH_MOD_I(SI,I_OnRehash,OnRehash(NULL,""));
+ SI->BuildISupport();
+*/
+}
+
+void InspIRCd::RehashServer()
+{
+ this->WriteOpers("*** Rehashing config file");
+ this->RehashUsersAndChans();
+ this->Config->Read(false,NULL);
+ this->ResetMaxBans();
+ this->Res->Rehash();
+}
std::string InspIRCd::GetVersionString()
{
@@ -42,7 +66,6 @@ void InspIRCd::BuildISupport()
Config->Update005();
}
-
std::string InspIRCd::GetRevision()
{
return REVISION;
@@ -80,4 +103,3 @@ bool InspIRCd::FindServerName(const std::string &servername)
return false;
}
-