X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fserver.cpp;h=97b4058c0e321d00e2bb021d39a01c85d64ceacc;hb=67de413cad88194972d55a8ff88464370890c5a9;hp=55c230f9694af47cf289c0bda502cc1520fa85fb;hpb=d9d99cd02dadf34bfcc220734ba0c422f0acb3e6;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/server.cpp b/src/server.cpp index 55c230f96..97b4058c0 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -36,7 +36,7 @@ void InspIRCd::SignalHandler(int signal) else if (signal == SIGTERM) #endif { - Exit(signal); + Exit(EXIT_STATUS_SIGTERM); } } @@ -58,7 +58,7 @@ void InspIRCd::Exit(int status) void RehashHandler::Call(const std::string &reason) { ServerInstance->SNO->WriteToSnoMask('a', "Rehashing config file %s %s",ServerConfig::CleanFilename(ServerInstance->ConfigFileName.c_str()), reason.c_str()); - FOREACH_MOD(I_OnGarbageCollect, OnGarbageCollect()); + FOREACH_MOD(OnGarbageCollect, ()); if (!ServerInstance->ConfigThread) { ServerInstance->ConfigThread = new ConfigReaderThread(""); @@ -186,11 +186,11 @@ void ISupportManager::Build() tokens["STATUSMSG"] = ServerInstance->Modes->BuildPrefixes(false); tokens["TOPICLEN"] = ConvToStr(ServerInstance->Config->Limits.MaxTopic); - tokens["FNC"] = tokens["MAP"] = tokens["VBANLIST"] = + tokens["FNC"] = tokens["VBANLIST"] = tokens["WALLCHOPS"] = tokens["WALLVOICES"]; // Modules can add new tokens and also edit or remove existing tokens - FOREACH_MOD(I_On005Numeric, On005Numeric(tokens)); + FOREACH_MOD(On005Numeric, (tokens)); // EXTBAN is a special case as we need to sort it and prepend a comma. std::map::iterator extban = tokens.find("EXTBAN");