summaryrefslogtreecommitdiff
path: root/src/modules/m_blockcaps.cpp
diff options
context:
space:
mode:
authoraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-09 18:34:17 +0000
committeraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-09 18:34:17 +0000
commit0b58bc2585ccc96219a238a9ef9ff73a125fa531 (patch)
tree7145beb88361e13998f86035c96d61d5ed3589e6 /src/modules/m_blockcaps.cpp
parent4ccfaab6f7feb008028cf6e3440f9dde33fa2fbb (diff)
Add <options:exemptchanops> support to m_censor and m_blockcaps, and tidy up the checks in {block,strip}color, and remove an uneeded abs() on the "flowing backwards" warning.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9071 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_blockcaps.cpp')
-rw-r--r--src/modules/m_blockcaps.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp
index bcbc82cac..6414f4db7 100644
--- a/src/modules/m_blockcaps.cpp
+++ b/src/modules/m_blockcaps.cpp
@@ -82,6 +82,11 @@ public:
Channel* c = (Channel*)dest;
+ if (CHANOPS_EXEMPT(ServerInstance, 'B') && c->GetStatus(user) == STATUS_OP)
+ {
+ return 0;
+ }
+
if (c->IsModeSet('B'))
{
int caps = 0;