]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Don't send an override notice if no modes were actually applied, thanks Ankit.
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 13 Oct 2008 11:50:42 +0000 (11:50 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 13 Oct 2008 11:50:42 +0000 (11:50 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10640 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_override.cpp

index 56e7dae7c9aa366164680e4ffe87acd8009f4817..8c3ea1bdad5ad1121b33f71a9519aae2d20722e1 100644 (file)
@@ -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" : "")+" " : "")+