]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_censor.cpp
Add <options:exemptchanops> support to m_censor and m_blockcaps, and tidy up the...
[user/henk/code/inspircd.git] / src / modules / m_censor.cpp
index 94ac8d113bacdc0518459afcdecfd678917ee11b..4eaf1e3b47406a4f982cd1ce9b44779c58e8cf5a 100644 (file)
@@ -140,7 +140,14 @@ class ModuleCensor : public Module
                if (target_type == TYPE_USER)
                        active = ((User*)dest)->IsModeSet('G');
                else if (target_type == TYPE_CHANNEL)
+               {
                        active = ((Channel*)dest)->IsModeSet('G');
+                       Channel* c = (Channel*)dest;
+                       if (CHANOPS_EXEMPT(ServerInstance, 'G') && c->GetStatus(user) == STATUS_OP)
+                       {
+                               return 0;
+                       }
+               }
 
                if (!active)
                        return 0;