summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_override.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp
index 67dea3dc9..083d220f7 100644
--- a/src/modules/m_override.cpp
+++ b/src/modules/m_override.cpp
@@ -66,7 +66,7 @@ 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)
+ if (Total == 0 || ServerInstance->Modes->GetLastParse().empty())
return;
ServerInstance->SNO->WriteToSnoMask('G',std::string(user->nick)+" Overriding modes: "+ServerInstance->Modes->GetLastParse()+" "+(Total ? "[Detail: " : "")+