diff options
Diffstat (limited to 'src/modules/m_cloaking.cpp')
-rw-r--r-- | src/modules/m_cloaking.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index 43f73bfe0..2fa3b9e63 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -307,7 +307,7 @@ class ModuleCloaking : public Module } } - virtual int OnCheckBan(User* user, Channel* chan) + virtual ModResult OnCheckBan(User* user, Channel* chan) { char mask[MAXBUF]; std::string* tofree; @@ -318,10 +318,10 @@ class ModuleCloaking : public Module for (BanList::iterator i = chan->bans.begin(); i != chan->bans.end(); i++) { if (InspIRCd::Match(mask,i->data)) - return -1; + return MOD_RES_DENY; } } - return 0; + return MOD_RES_PASSTHRU; } void Prioritize() |