]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_rehash.cpp
Add IP address conversion utility functions, irc::sockets::aptosa and irc::sockets...
[user/henk/code/inspircd.git] / src / commands / cmd_rehash.cpp
index 4182de8305d65ef2a3857c41895ced512399f0ed..e3405161129be0d15349d679078ccf7486693923 100644 (file)
@@ -50,14 +50,11 @@ CmdResult CommandRehash::Handle (const std::vector<std::string>& parameters, Use
 
 
        std::string m = user->nick + " is rehashing config file " + ServerConfig::CleanFilename(ServerInstance->ConfigFileName) + " on " + ServerInstance->Config->ServerName;
-       ServerInstance->SNO->WriteToSnoMask('A', m);
-       ServerInstance->Logs->CloseLogs();
+       ServerInstance->SNO->WriteToSnoMask('a', m);
 
-       if (!ServerInstance->OpenLog(ServerInstance->Config->argv, ServerInstance->Config->argc))
-       {
-               m = std::string("ERROR: Could not open logfile ") + ServerInstance->Config->logpath + ":" + strerror(errno);
-               ServerInstance->SNO->WriteToSnoMask('A', m);
-       }
+       /* Don't do anything with the logs here -- logs are restarted
+        * after the config thread has completed.
+        */
 
        ServerInstance->RehashUsersAndChans();
        FOREACH_MOD(I_OnGarbageCollect, OnGarbageCollect());