aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_services_account.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2017-10-21 16:34:48 +0100
committerGravatar Peter Powell2017-10-21 16:34:48 +0100
commitdcd3438011d59aa4de4df64abf06bca1cbf36859 (patch)
tree86d9da14ef7258831b25d8aac70383d2964d3a9f /src/modules/m_services_account.cpp
parentSwitch the default datetime format to something easier to read. (diff)
Add a helper function for calling the OnCheckExemption event.
Diffstat (limited to 'src/modules/m_services_account.cpp')
-rw-r--r--src/modules/m_services_account.cpp3
1 files changed, 1 insertions, 2 deletions
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)
{