From 60f150653a066cda7f52e9478b0646628facbefa Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Sat, 10 Dec 2016 22:25:43 +0100 Subject: fix channel rank issue --- src/modules/m_override.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp index 3e42c4f79..2c2d6a3a2 100644 --- a/src/modules/m_override.cpp +++ b/src/modules/m_override.cpp @@ -101,7 +101,8 @@ class ModuleOverride : public Module if (IS_OPER(source) && CanOverride(source,"KICK")) { // If the kicker's status is less than the target's, or the kicker's status is less than or equal to voice - if ((memb->chan->GetPrefixValue(source) < memb->getRank()) || (memb->chan->GetPrefixValue(source) <= VOICE_VALUE)) + if ((memb->chan->GetPrefixValue(source) < memb->getRank()) || (memb->chan->GetPrefixValue(source) <= VOICE_VALUE) || + (memb->chan->GetPrefixValue(source) == HALFOP_VALUE) && (memb->getRank() == HALFOP_VALUE)) { ServerInstance->SNO->WriteGlobalSno('v',source->nick+" used oper override to kick "+memb->user->nick+" on "+memb->chan->name+" ("+reason+")"); return MOD_RES_ALLOW; -- cgit v1.2.3