diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-10-13 11:50:42 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-10-13 11:50:42 +0000 |
commit | 5b061f31cf2a7ebe0f0a80fdd53ffb2e3fd9982d (patch) | |
tree | ca35a65a867fbd1e566e130c092c493c2583da66 /src | |
parent | b43e1b361f871ca564c887823fae8ac6664e1be8 (diff) |
Don't send an override notice if no modes were actually applied, thanks Ankit.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10640 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_override.cpp | 2 |
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" : "")+" " : "")+ |