]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/server.cpp
How about we abort if there were errors, not if there weren't any? Great idea...
[user/henk/code/inspircd.git] / src / server.cpp
index 734e551b0011ce927c1eace6d46212f31f2f7b36..01f523e4708ff5af90efed6af6b4f82210cbeaaf 100644 (file)
@@ -3,7 +3,7 @@
  *       +------------------------------------+
  *
  *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *         the file COPYING for details.
@@ -48,19 +48,14 @@ void InspIRCd::Exit(int status)
 
 void RehashHandler::Call(const std::string &reason)
 {
-       Server->RehashFinishMutex->Lock();
-       Server->SNO->WriteToSnoMask('A', "Rehashing config file %s %s",ServerConfig::CleanFilename(Server->ConfigFileName), reason.c_str());
+       Server->SNO->WriteToSnoMask('a', "Rehashing config file %s %s",ServerConfig::CleanFilename(Server->ConfigFileName), reason.c_str());
        Server->RehashUsersAndChans();
        FOREACH_MOD_I(Server, I_OnGarbageCollect, OnGarbageCollect());
        if (!Server->ConfigThread)
        {
-               Server->Config->RehashUserUID = "";
-               Server->Config->RehashParameter = "";
-
-               Server->ConfigThread = new ConfigReaderThread(Server, false, "");
-               Server->Threads->Create(Server->ConfigThread);
+               Server->ConfigThread = new ConfigReaderThread(Server, "");
+               Server->Threads->Start(Server->ConfigThread);
        }
-       Server->RehashFinishMutex->Unlock();
 }
 
 void InspIRCd::RehashServer()