From 579e707f017ca237d260165992f0b72bafba152c Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 12 Oct 2009 18:12:48 +0000 Subject: m_exemptchanops by jackmcbarn - channel mode +X to allow per-channel setting git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11855 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_blockcaps.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_blockcaps.cpp') diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp index 7a696035a..e21e1da88 100644 --- a/src/modules/m_blockcaps.cpp +++ b/src/modules/m_blockcaps.cpp @@ -16,7 +16,7 @@ /* $ModDesc: Provides support to block all-CAPS channel messages and notices */ -/** Handles the +P channel mode +/** Handles the +B channel mode */ class BlockCaps : public SimpleChannelModeHandler { @@ -59,11 +59,11 @@ public: return MOD_RES_PASSTHRU; Channel* c = (Channel*)dest; + ModResult res; + FIRST_MOD_RESULT(OnChannelRestrictionApply, res, (c->GetUser(user),c,"blockcaps")); - if (CHANOPS_EXEMPT('B') && c->GetPrefixValue(user) == OP_VALUE) - { + if (res == MOD_RES_ALLOW) return MOD_RES_PASSTHRU; - } if (!c->GetExtBanStatus(user, 'B').check(!c->IsModeSet('B'))) { -- cgit v1.2.3