diff options
author | Peter Powell <petpow@saberuk.com> | 2017-03-20 11:43:24 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-03-20 11:47:59 +0000 |
commit | 81027f3a0888ac4c8e3fb6ea90081492defce946 (patch) | |
tree | a8da074f8feb486af8ef4aebf67e8c901f2340f3 /src/modules/m_nonotice.cpp | |
parent | 5583d8dc5ff202d411d7985b6bbfb240beeacddd (diff) |
Move the OnCheckExemption hook out of the core.
Diffstat (limited to 'src/modules/m_nonotice.cpp')
-rw-r--r-- | src/modules/m_nonotice.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/m_nonotice.cpp b/src/modules/m_nonotice.cpp index 3d6d0bb09..ec5be9517 100644 --- a/src/modules/m_nonotice.cpp +++ b/src/modules/m_nonotice.cpp @@ -20,6 +20,7 @@ #include "inspircd.h" +#include "modules/exemption.h" class NoNotice : public SimpleChannelModeHandler { @@ -29,11 +30,13 @@ class NoNotice : public SimpleChannelModeHandler class ModuleNoNotice : public Module { + CheckExemption::EventProvider exemptionprov; NoNotice nt; public: ModuleNoNotice() - : nt(this) + : exemptionprov(this) + , nt(this) { } @@ -50,7 +53,7 @@ class ModuleNoNotice : public Module Channel* c = (Channel*)dest; if (!c->GetExtBanStatus(user, 'T').check(!c->IsModeSet(nt))) { - res = ServerInstance->OnCheckExemption(user,c,"nonotice"); + FIRST_MOD_RESULT_CUSTOM(exemptionprov, CheckExemption::EventListener, OnCheckExemption, res, (user, c, "nonotice")); if (res == MOD_RES_ALLOW) return MOD_RES_PASSTHRU; else |