summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_override.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp
index 56e7dae7c..8c3ea1bda 100644
--- a/src/modules/m_override.cpp
+++ b/src/modules/m_override.cpp
@@ -66,6 +66,8 @@ class ModuleOverride : public Module
if ((OverriddenMode) && (irc::string(command.c_str()) == "MODE") && (result == CMD_SUCCESS))
{
int Total = OverOps + OverDeops + OverVoices + OverDevoices + OverHalfops + OverDehalfops;
+ if (Total == 0)
+ return;
ServerInstance->SNO->WriteToSnoMask('O',std::string(user->nick)+" Overriding modes: "+ServerInstance->Modes->GetLastParse()+" "+(Total ? "[Detail: " : "")+
(OverOps ? ConvToStr(OverOps)+" op"+(OverOps != 1 ? "s" : "")+" " : "")+