From 0b58bc2585ccc96219a238a9ef9ff73a125fa531 Mon Sep 17 00:00:00 2001 From: aquanight Date: Sun, 9 Mar 2008 18:34:17 +0000 Subject: Add 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 --- src/modules/m_blockcaps.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/modules/m_blockcaps.cpp') 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; -- cgit v1.3.1-10-gc9f91