summaryrefslogtreecommitdiff
path: root/src/modules/m_blockcaps.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-10-21 16:34:48 +0100
committerPeter Powell <petpow@saberuk.com>2017-10-21 16:34:48 +0100
commitdcd3438011d59aa4de4df64abf06bca1cbf36859 (patch)
tree86d9da14ef7258831b25d8aac70383d2964d3a9f /src/modules/m_blockcaps.cpp
parent9f7c187c518466114cb3e3b51979d2c63c2ce7a0 (diff)
Add a helper function for calling the OnCheckExemption event.
Diffstat (limited to 'src/modules/m_blockcaps.cpp')
-rw-r--r--src/modules/m_blockcaps.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp
index c26d92caa..dc0bdf974 100644
--- a/src/modules/m_blockcaps.cpp
+++ b/src/modules/m_blockcaps.cpp
@@ -60,8 +60,7 @@ public:
return MOD_RES_PASSTHRU;
Channel* c = (Channel*)dest;
- ModResult res;
- FIRST_MOD_RESULT_CUSTOM(exemptionprov, CheckExemption::EventListener, OnCheckExemption, res, (user, c, "blockcaps"));
+ ModResult res = CheckExemption::Call(exemptionprov, user, c, "blockcaps");
if (res == MOD_RES_ALLOW)
return MOD_RES_PASSTHRU;