From dd8679b086c568f37daa1d746a972236938206ca Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 12 Apr 2020 14:52:52 +0100 Subject: Fix the operlog module double logging when tosnomask is enabled. --- src/modules/m_operlog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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); } } -- cgit v1.2.3