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_services_account.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules/m_services_account.cpp') diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp index ac5730374..249ba35ce 100644 --- a/src/modules/m_services_account.cpp +++ b/src/modules/m_services_account.cpp @@ -213,8 +213,7 @@ class ModuleServicesAccount : public Module, public Whois::EventListener if (target_type == TYPE_CHANNEL) { Channel* c = (Channel*)dest; - ModResult res; - FIRST_MOD_RESULT_CUSTOM(exemptionprov, CheckExemption::EventListener, OnCheckExemption, res, (user, c, "regmoderated")); + ModResult res = CheckExemption::Call(exemptionprov, user, c, "regmoderated"); if (c->IsModeSet(m2) && !is_registered && res != MOD_RES_ALLOW) { -- cgit v1.3.1-10-gc9f91