diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-04 14:58:22 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-04 14:58:22 +0000 |
commit | 83c6918cfa416e8bf65a48973fe6b726d825e069 (patch) | |
tree | c676ddcdb576878b7411221dae462465d42a2f8a | |
parent | 5a0852e11bf5c0056ce500f06530442c4bdedd77 (diff) |
Fix override snotices for KICK not being sent for some cases, reported by Namegduf.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10080 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_override.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp index dc9e9ab37..cee3e2ba7 100644 --- a/src/modules/m_override.cpp +++ b/src/modules/m_override.cpp @@ -107,8 +107,9 @@ class ModuleOverride : public Module { if (IS_OPER(source) && CanOverride(source,"KICK")) { - if (((chan->GetStatus(source) == STATUS_HOP) && (chan->GetStatus(user) == STATUS_OP)) || (chan->GetStatus(source) < STATUS_VOICE)) - { + // If the kicker's status is less than the target's, or the kicker's status is less than or equal to voice + if ((chan->GetStatus(source) < chan->GetStatus(user)) || (chan->GetStatus(source) <= STATUS_VOICE)) + { ServerInstance->SNO->WriteToSnoMask('O',std::string(source->nick)+" Override-Kicked "+std::string(user->nick)+" on "+std::string(chan->name)+" ("+reason+")"); } /* Returning -1 explicitly allows the kick */ |