summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-03-02 10:40:48 +0000
committerPeter Powell <petpow@saberuk.com>2019-03-02 11:32:02 +0000
commit3a68e05d9a30ed18cebf80f81258a9fb0ba67a0c (patch)
tree98e3b3e1af4920e0086888d81e66eb8129cb70db /src
parent9b25df31096f889e3653ab100493133014d4fe73 (diff)
Reject client-to-client tags with no name.
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_ircv3_ctctags.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_ircv3_ctctags.cpp b/src/modules/m_ircv3_ctctags.cpp
index 8684642c6..5a88e68a0 100644
--- a/src/modules/m_ircv3_ctctags.cpp
+++ b/src/modules/m_ircv3_ctctags.cpp
@@ -280,7 +280,7 @@ class C2CTags : public ClientProtocol::MessageTagProvider
{
// A client-only tag is prefixed with a plus sign (+) and otherwise conforms
// to the format specified in IRCv3.2 tags.
- if (tagname[0] != '+')
+ if (tagname[0] != '+' || tagname.length() < 2)
return MOD_RES_PASSTHRU;
// If the user is local then we check whether they have the message-tags cap