]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix the operlog module double logging when tosnomask is enabled.
authorSadie Powell <sadie@witchery.services>
Sun, 12 Apr 2020 13:52:52 +0000 (14:52 +0100)
committerSadie Powell <sadie@witchery.services>
Sun, 12 Apr 2020 13:52:52 +0000 (14:52 +0100)
src/modules/m_operlog.cpp

index 67857e0c46476163d2f435bf465633e33b211ab6..145f7e68ae69fb9710dff904ed67aef6e674c3f3 100644 (file)
@@ -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);
                        }
                }