diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-01-15 23:42:33 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-01-15 23:42:33 +0000 |
commit | 7cf9e842f4f8ab870afaa5bd9cd95fd6cb8f5fa5 (patch) | |
tree | e65944f14b0a0ef03e78a418b00f1b2f8d606877 /src/modules | |
parent | bf026ad679098a2f0f028679ef64ab53062c44e8 (diff) |
Prevent snotices being sent out for a completely empty mode
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10964 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_override.cpp | 2 |
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: " : "")+ |