summaryrefslogtreecommitdiff
path: root/src/modules/m_nonicks.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_nonicks.cpp
parent9f7c187c518466114cb3e3b51979d2c63c2ce7a0 (diff)
Add a helper function for calling the OnCheckExemption event.
Diffstat (limited to 'src/modules/m_nonicks.cpp')
-rw-r--r--src/modules/m_nonicks.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp
index c6de17e89..91a1303c6 100644
--- a/src/modules/m_nonicks.cpp
+++ b/src/modules/m_nonicks.cpp
@@ -56,8 +56,7 @@ class ModuleNoNickChange : public Module
{
Channel* curr = (*i)->chan;
- ModResult res;
- FIRST_MOD_RESULT_CUSTOM(exemptionprov, CheckExemption::EventListener, OnCheckExemption, res, (user, curr, "nonick"));
+ ModResult res = CheckExemption::Call(exemptionprov, user, curr, "nonick");
if (res == MOD_RES_ALLOW)
continue;