summaryrefslogtreecommitdiff
path: root/src/access.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/access.cpp')
-rw-r--r--src/access.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/access.cpp b/src/access.cpp
index a8da63c50..b0c98b9db 100644
--- a/src/access.cpp
+++ b/src/access.cpp
@@ -308,13 +308,13 @@ bool AccessGroup::HasPriv(const Anope::string &name) const
else if (this->founder)
return true;
EventReturn MOD_RESULT;
- FOREACH_RESULT(I_OnGroupCheckPriv, OnGroupCheckPriv(this, name));
+ FOREACH_RESULT(OnGroupCheckPriv, MOD_RESULT, (this, name));
if (MOD_RESULT != EVENT_CONTINUE)
return MOD_RESULT == EVENT_ALLOW;
for (unsigned i = this->size(); i > 0; --i)
{
ChanAccess *access = this->at(i - 1);
- FOREACH_RESULT(I_OnCheckPriv, OnCheckPriv(access, name));
+ FOREACH_RESULT(OnCheckPriv, MOD_RESULT, (access, name));
if (MOD_RESULT == EVENT_ALLOW || access->HasPriv(name))
return true;
}