From: Sadie Powell Date: Sun, 12 Apr 2020 13:52:52 +0000 (+0100) Subject: Fix the operlog module double logging when tosnomask is enabled. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;ds=sidebyside;h=dd8679b086c568f37daa1d746a972236938206ca;p=user%2Fhenk%2Fcode%2Finspircd.git Fix the operlog module double logging when tosnomask is enabled. --- diff --git a/src/modules/m_operlog.cpp b/src/modules/m_operlog.cpp index 67857e0c4..145f7e68a 100644 --- a/src/modules/m_operlog.cpp +++ b/src/modules/m_operlog.cpp @@ -57,9 +57,10 @@ class ModuleOperLog : public Module if ((thiscommand) && (thiscommand->flags_needed == 'o')) { std::string msg = "[" + user->GetFullRealHost() + "] " + command + " " + stdalgo::string::join(parameters); - ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "OPERLOG: " + msg); if (tosnomask) ServerInstance->SNO->WriteGlobalSno('r', msg); + else + ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, msg); } }