diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-10 23:10:57 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-10 23:10:57 +0000 |
commit | 750f9e29370ced3fe6f1549acbfada9483eff5f4 (patch) | |
tree | 9e0d3f6512c5f62cbccc1bbd1b7b3614f3e3dfab | |
parent | aa66651cdc6e3aee74e8f0ed2c064fc3daa3fd05 (diff) |
Fix rehashing to display a success notice, tidy up some WriteOpers notices
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6570 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/cmd_rehash.cpp | 2 | ||||
-rw-r--r-- | src/configreader.cpp | 5 | ||||
-rw-r--r-- | src/inspircd.cpp | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/src/cmd_rehash.cpp b/src/cmd_rehash.cpp index d942255f3..6f454383d 100644 --- a/src/cmd_rehash.cpp +++ b/src/cmd_rehash.cpp @@ -34,7 +34,7 @@ CmdResult cmd_rehash::Handle (const char** parameters, int pcnt, userrec *user) } else { - ServerInstance->WriteOpers("%s is rehashing config file %s",user->nick,ServerConfig::CleanFilename(CONFIG_FILE)); + ServerInstance->WriteOpers("*** %s is rehashing config file %s",user->nick,ServerConfig::CleanFilename(CONFIG_FILE)); ServerInstance->CloseLog(); ServerInstance->OpenLog(ServerInstance->Config->argv, ServerInstance->Config->argc); ServerInstance->RehashUsersAndChans(); diff --git a/src/configreader.cpp b/src/configreader.cpp index 9e13dfae1..3060b9866 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -873,6 +873,11 @@ void ServerConfig::Read(bool bail, userrec* user) ServerInstance->Log(DEFAULT,"Successfully unloaded %lu of %lu modules and loaded %lu of %lu modules.",(unsigned long)rem,(unsigned long)removed_modules.size(),(unsigned long)add,(unsigned long)added_modules.size()); } + + if (user) + user->WriteServ("NOTICE %s :*** Successfully rehashed server.", user->nick); + else + ServerInstance->WriteOpers("*** Successfully rehashed server."); } bool ServerConfig::LoadConf(ConfigDataHash &target, const char* filename, std::ostringstream &errorstream) diff --git a/src/inspircd.cpp b/src/inspircd.cpp index c7e261e3b..ce8fc9521 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -140,7 +140,7 @@ void InspIRCd::Start() void InspIRCd::Rehash(int status) { - SI->WriteOpers("Rehashing config file %s due to SIGHUP",ServerConfig::CleanFilename(CONFIG_FILE)); + SI->WriteOpers("*** Rehashing config file %s due to SIGHUP",ServerConfig::CleanFilename(CONFIG_FILE)); SI->CloseLog(); SI->OpenLog(SI->Config->argv, SI->Config->argc); SI->RehashUsersAndChans(); |