From 2b981924b99ef6703ff26d5782b3e1a5656237a4 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Fri, 6 Aug 2010 20:01:03 -0400 Subject: Fix the permissions code to be a bit less confusing --- src/modules/m_exemptchanops.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/modules/m_exemptchanops.cpp') diff --git a/src/modules/m_exemptchanops.cpp b/src/modules/m_exemptchanops.cpp index a8f40458e..0c03c2666 100644 --- a/src/modules/m_exemptchanops.cpp +++ b/src/modules/m_exemptchanops.cpp @@ -12,7 +12,6 @@ */ #include "inspircd.h" -#include "opflags.h" #include "u_listmode.h" /* $ModDesc: Provides the ability to allow channel operators to be exempt from certain modes. */ @@ -56,11 +55,10 @@ class ExemptChanOps : public ListModeBase class ModuleExemptChanOps : public Module { ExemptChanOps ec; - dynamic_reference permcheck; public: - ModuleExemptChanOps() : ec(this), permcheck("opflags") {} + ModuleExemptChanOps() : ec(this) {} void init() { @@ -98,11 +96,7 @@ class ModuleExemptChanOps : public Module } } - if (permcheck) - { - perm.result = permcheck->PermissionCheck(memb, minmode); - } - else if (memb && !minmode.empty()) + if (memb && !minmode.empty()) { ModeHandler* mh = minmode.length() == 1 ? ServerInstance->Modes->FindMode(minmode[0], MODETYPE_CHANNEL) : -- cgit v1.3.1-10-gc9f91