X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_ircv3_ctctags.cpp;h=5a88e68a02328c90e8b05f76bd63928031ee4c12;hb=f97c88f6f64e66fe2abb38860ab1e3f8c0702439;hp=8684642c675c0fd08583b276ed4954a6ab06a9cd;hpb=c495b5d9cf8bed4f07c0b77a1f9e98dcc1f62068;p=user%2Fhenk%2Fcode%2Finspircd.git 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