summaryrefslogtreecommitdiff
path: root/src/modules/m_repeat.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_repeat.cpp
parent9f7c187c518466114cb3e3b51979d2c63c2ce7a0 (diff)
Add a helper function for calling the OnCheckExemption event.
Diffstat (limited to 'src/modules/m_repeat.cpp')
-rw-r--r--src/modules/m_repeat.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_repeat.cpp b/src/modules/m_repeat.cpp
index 6c34648e0..aa7dc762b 100644
--- a/src/modules/m_repeat.cpp
+++ b/src/modules/m_repeat.cpp
@@ -369,8 +369,7 @@ class RepeatModule : public Module
if (!memb)
return MOD_RES_PASSTHRU;
- ModResult res;
- FIRST_MOD_RESULT_CUSTOM(exemptionprov, CheckExemption::EventListener, OnCheckExemption, res, (user, chan, "repeat"));
+ ModResult res = CheckExemption::Call(exemptionprov, user, chan, "repeat");
if (res == MOD_RES_ALLOW)
return MOD_RES_PASSTHRU;