summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <adam@sigterm.info>2017-05-17 19:46:28 -0400
committerGitHub <noreply@github.com>2017-05-17 19:46:28 -0400
commitfc4fc43ec232407b38d7ca182cb92c5cac4287aa (patch)
treead76e8c26999b777231d72b8ad35e7f2d4ae1a80
parente5518238259b9988a2a6d8ef654b69034628c10d (diff)
parent60f150653a066cda7f52e9478b0646628facbefa (diff)
Merge pull request #1094 from SISheogorath/insp20+fixed-Override
fix override issue
-rw-r--r--src/modules/m_override.cpp3
1 files changed, 2 insertions, 1 deletions
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;