summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-04-12 14:52:52 +0100
committerSadie Powell <sadie@witchery.services>2020-04-12 14:52:52 +0100
commitdd8679b086c568f37daa1d746a972236938206ca (patch)
tree9077914a72d5e30460852560db7de52dc1ea2178 /src
parent6fcbfc072387752ec345d7589e986b9959f350fc (diff)
Fix the operlog module double logging when tosnomask is enabled.
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_operlog.cpp3
1 files changed, 2 insertions, 1 deletions
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);
}
}