diff options
| author | 2010-08-06 20:01:03 -0400 | |
|---|---|---|
| committer | 2010-08-06 20:01:03 -0400 | |
| commit | 2b981924b99ef6703ff26d5782b3e1a5656237a4 (patch) | |
| tree | eac0681e0075d2b0e5bcc92d3b92e1ee78f5bf1c /src/modules/m_exemptchanops.cpp | |
| parent | Fix incorrect test in m_restrictchans (diff) | |
Fix the permissions code to be a bit less confusing
Diffstat (limited to 'src/modules/m_exemptchanops.cpp')
| -rw-r--r-- | src/modules/m_exemptchanops.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
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<OpFlagProvider> 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) : |
