From 83c6918cfa416e8bf65a48973fe6b726d825e069 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 4 Aug 2008 14:58:22 +0000 Subject: 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 --- src/modules/m_override.cpp | 5 +++-- 1 file 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 */ -- cgit v1.2.3