summaryrefslogtreecommitdiff
path: root/src/modules/m_noctcp.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-08-05 18:33:54 +0100
committerGitHub <noreply@github.com>2017-08-05 18:33:54 +0100
commit151dbdaac5c1b85779ac50460361555d40cd79e2 (patch)
tree6dacee1e2fd8c904466dc565f8a4404d8cb9fe8d /src/modules/m_noctcp.cpp
parent5c65a0a03dc41f3ed84dd4de4a1a5333365d6bb1 (diff)
parentb105e9366b0d8fc3b6ee41942cc2a3518e24bc21 (diff)
Merge pull request #1347 from SaberUK/insp20+ctcp-action
[2.0] Fix exempting CTCP ACTIONs in m_blockcaps and m_noctcp.
Diffstat (limited to 'src/modules/m_noctcp.cpp')
-rw-r--r--src/modules/m_noctcp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_noctcp.cpp b/src/modules/m_noctcp.cpp
index 1dd6fe34a..c934a05c6 100644
--- a/src/modules/m_noctcp.cpp
+++ b/src/modules/m_noctcp.cpp
@@ -67,7 +67,7 @@ class ModuleNoCTCP : public Module
if ((target_type == TYPE_CHANNEL) && (IS_LOCAL(user)))
{
Channel* c = (Channel*)dest;
- if ((text.empty()) || (text[0] != '\001') || (!strncmp(text.c_str(),"\1ACTION ",8)))
+ if ((text.empty()) || (text[0] != '\001') || (!strncmp(text.c_str(),"\1ACTION ", 8)) || (text == "\1ACTION\1") || (text == "\1ACTION"))
return MOD_RES_PASSTHRU;
ModResult res = ServerInstance->OnCheckExemption(user,c,"noctcp");