diff options
author | Adam <Adam@anope.org> | 2013-06-26 17:01:33 -0400 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-08-04 16:08:57 +0200 |
commit | 8710724b5518ae9858309e548514f76e620a8459 (patch) | |
tree | cb4efb99580cb8957353848a9dc34d5a83ab172e /src/server.cpp | |
parent | 36f93c0e7f8a980943237b0b28138ade86f5e573 (diff) |
Change the syntax of FOREACH macros to be less dumb.
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server.cpp b/src/server.cpp index 580ee5310..efefa0d37 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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(""); @@ -190,7 +190,7 @@ void ISupportManager::Build() 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<std::string, std::string>::iterator extban = tokens.find("EXTBAN"); |