diff options
| author | 2017-06-16 18:08:40 +0100 | |
|---|---|---|
| committer | 2017-06-16 18:20:34 +0100 | |
| commit | b105e9366b0d8fc3b6ee41942cc2a3518e24bc21 (patch) | |
| tree | 953633015221b64e7b81517b6dba88825f8336fa /src/modules/m_blockcaps.cpp | |
| parent | Release v2.0.24 (diff) | |
| download | inspircd++-b105e9366b0d8fc3b6ee41942cc2a3518e24bc21.tar.gz inspircd++-b105e9366b0d8fc3b6ee41942cc2a3518e24bc21.tar.bz2 inspircd++-b105e9366b0d8fc3b6ee41942cc2a3518e24bc21.zip | |
Fix exempting CTCP ACTIONs in m_blockcaps and m_noctcp.
Previously we assumed that CTCP ACTIONs matched "\1ACTION ". This
is incorrect because "\1ACTION\1" and "\1ACTION" are valid CTCPs.
Diffstat (limited to 'src/modules/m_blockcaps.cpp')
| -rw-r--r-- | src/modules/m_blockcaps.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp index 200693699..7146ee068 100644 --- a/src/modules/m_blockcaps.cpp +++ b/src/modules/m_blockcaps.cpp @@ -67,7 +67,7 @@ public: { if (target_type == TYPE_CHANNEL) { - if ((!IS_LOCAL(user)) || (text.length() < minlen)) + if ((!IS_LOCAL(user)) || (text.length() < minlen) || (text == "\1ACTION\1") || (text == "\1ACTION")) return MOD_RES_PASSTHRU; Channel* c = (Channel*)dest; |
