diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-04 14:03:42 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-04 14:03:42 +0000 |
commit | e21214f274c9bd4e831c3512e3365d16d79ef8d2 (patch) | |
tree | 64410ddc3ec2fef99bf156281a02b435921b293a /src/modules/m_noctcp.cpp | |
parent | a8b19c295d3a105005d47ef9de04412fcb14d2e8 (diff) |
Fix exemptchanops for some modules, fixes bug #485 reported by John. Thanks.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8818 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_noctcp.cpp')
-rw-r--r-- | src/modules/m_noctcp.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_noctcp.cpp b/src/modules/m_noctcp.cpp index 2ae9505e1..5407ffb9d 100644 --- a/src/modules/m_noctcp.cpp +++ b/src/modules/m_noctcp.cpp @@ -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')) |