mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
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
This commit is contained in:
parent
bf026ad679
commit
7cf9e842f4
@ -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: " : "")+
|
||||
|
Loading…
x
Reference in New Issue
Block a user