summaryrefslogtreecommitdiff
path: root/src/modules/m_blockcolor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_blockcolor.cpp')
-rw-r--r--src/modules/m_blockcolor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_blockcolor.cpp b/src/modules/m_blockcolor.cpp
index eba648126..9075bd8c7 100644
--- a/src/modules/m_blockcolor.cpp
+++ b/src/modules/m_blockcolor.cpp
@@ -47,11 +47,11 @@ class ModuleBlockColour : public Module
if ((target_type == TYPE_CHANNEL) && (IS_LOCAL(user)))
{
Channel* c = (Channel*)dest;
+ ModResult res;
+ FIRST_MOD_RESULT(OnChannelRestrictionApply, res, (c->GetUser(user),c,"blockcolor"));
- if (CHANOPS_EXEMPT('c') && c->GetPrefixValue(user) == OP_VALUE)
- {
+ if (res == MOD_RES_ALLOW)
return MOD_RES_PASSTHRU;
- }
if (!c->GetExtBanStatus(user, 'c').check(!c->IsModeSet('c')))
{