X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fserver.cpp;h=5000d32d91a0317986ef5b9df333173ca21e1d76;hb=3df81381bcfee4531599ddb417a31e7efca2528e;hp=44f2ce78f8387f9b0816487978c1990de8675b82;hpb=9bddcf91ac79f34f8721bbf161f90cc4cc9dbe8c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/server.cpp b/src/server.cpp index 44f2ce78f..5000d32d9 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -2,8 +2,8 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits + * InspIRCd: (C) 2002-2009 InspIRCd Development Team + * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see * the file COPYING for details. @@ -48,8 +48,7 @@ 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) @@ -58,9 +57,8 @@ void RehashHandler::Call(const std::string &reason) Server->Config->RehashParameter = ""; Server->ConfigThread = new ConfigReaderThread(Server, false, ""); - Server->Threads->Create(Server->ConfigThread); + Server->Threads->Start(Server->ConfigThread); } - Server->RehashFinishMutex->Unlock(); } void InspIRCd::RehashServer() @@ -148,7 +146,7 @@ void InspIRCd::IncrementUID(int pos) for (int i = 3; i < UUID_LENGTH; i++) { current_uid[i] = 'A'; - pos = UUID_LENGTH - 1; + pos = UUID_LENGTH - 1; } } else