]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_noctcp.cpp
Add comments
[user/henk/code/inspircd.git] / src / modules / m_noctcp.cpp
index 2ae9505e1df73f65406b3e4fa6a7723f076b226f..5407ffb9d254bd9daa6c41de2f32a825fdee2dbd 100644 (file)
@@ -72,6 +72,12 @@ class ModuleNoCTCP : public Module
                if ((target_type == TYPE_CHANNEL) && (IS_LOCAL(user)))
                {
                        Channel* c = (Channel*)dest;
+                       
+                       if (CHANOPS_EXEMPT(ServerInstance, 'C') && c->GetStatus(user) == STATUS_OP)
+                       {
+                               return 0;
+                       }
+                       
                        if (c->IsModeSet('C'))
                        {
                                if ((text.length()) && (text[0] == '\1'))