diff options
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 26 |
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; } - |