X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fctcphandler.cpp;h=655f1700408189af13cf3f9cd81b36b10b8cc1b1;hb=bb51c809ad956b869181fd2475a62fd5404ba326;hp=158c39d0058d6fcd4341780749e7814174cc8889;hpb=828a8a8b1f8a344e8cc3ee47541ce5f6b4337d5f;p=quassel.git diff --git a/src/core/ctcphandler.cpp b/src/core/ctcphandler.cpp index 158c39d0..655f1700 100644 --- a/src/core/ctcphandler.cpp +++ b/src/core/ctcphandler.cpp @@ -162,6 +162,9 @@ void CtcpHandler::parse(Message::Type messageType, const QString &prefix, const } QByteArray CtcpHandler::pack(const QByteArray &ctcpTag, const QByteArray &message) { + if(message.isEmpty()) + return XDELIM + ctcpTag + XDELIM; + return XDELIM + ctcpTag + ' ' + xdelimQuote(message) + XDELIM; }