From dcd3438011d59aa4de4df64abf06bca1cbf36859 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 21 Oct 2017 16:34:48 +0100 Subject: Add a helper function for calling the OnCheckExemption event. --- src/modules/m_repeat.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules/m_repeat.cpp') 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; -- cgit v1.2.3