X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_blockcaps.cpp;h=6e67cb3095efc6c3610326553b0389ae2f172b1f;hb=81027f3a0888ac4c8e3fb6ea90081492defce946;hp=cd7698d69564d2104650e8710d701798d8c20ef2;hpb=5583d8dc5ff202d411d7985b6bbfb240beeacddd;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp index cd7698d69..6e67cb309 100644 --- a/src/modules/m_blockcaps.cpp +++ b/src/modules/m_blockcaps.cpp @@ -21,6 +21,7 @@ #include "inspircd.h" +#include "modules/exemption.h" /** Handles the +B channel mode @@ -33,13 +34,16 @@ class BlockCaps : public SimpleChannelModeHandler class ModuleBlockCAPS : public Module { + CheckExemption::EventProvider exemptionprov; BlockCaps bc; unsigned int percent; unsigned int minlen; char capsmap[256]; public: - ModuleBlockCAPS() : bc(this) + ModuleBlockCAPS() + : exemptionprov(this) + , bc(this) { } @@ -56,7 +60,8 @@ public: return MOD_RES_PASSTHRU; Channel* c = (Channel*)dest; - ModResult res = ServerInstance->OnCheckExemption(user,c,"blockcaps"); + ModResult res; + FIRST_MOD_RESULT_CUSTOM(exemptionprov, CheckExemption::EventListener, OnCheckExemption, res, (user, c, "blockcaps")); if (res == MOD_RES_ALLOW) return MOD_RES_PASSTHRU;