projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
828a8a8
)
improved ctcp handler method, fixes #1011
author
Johannes Huber
<johu@gmx.de>
Wed, 11 Aug 2010 01:19:38 +0000
(
03:19
+0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Wed, 11 Aug 2010 15:05:41 +0000
(17:05 +0200)
do not add space in ctcp handler method pack if message is empty
src/core/ctcphandler.cpp
patch
|
blob
|
history
diff --git
a/src/core/ctcphandler.cpp
b/src/core/ctcphandler.cpp
index
158c39d
..
655f170
100644
(file)
--- 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) {
}
QByteArray CtcpHandler::pack(const QByteArray &ctcpTag, const QByteArray &message) {
+ if(message.isEmpty())
+ return XDELIM + ctcpTag + XDELIM;
+
return XDELIM + ctcpTag + ' ' + xdelimQuote(message) + XDELIM;
}
return XDELIM + ctcpTag + ' ' + xdelimQuote(message) + XDELIM;
}