From: Manuel Nickschas Date: Thu, 14 May 2009 22:14:58 +0000 (+0200) Subject: Fix 512 byte limit protection X-Git-Tag: 0.4.2~5 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=bf51277149f96cf6b8d8df742f7e3bf812f741f7;ds=inline Fix 512 byte limit protection Fixes #685. --- diff --git a/src/core/userinputhandler.cpp b/src/core/userinputhandler.cpp index 8fe87b03..26dd3d45 100644 --- a/src/core/userinputhandler.cpp +++ b/src/core/userinputhandler.cpp @@ -453,7 +453,7 @@ void UserInputHandler::expand(const QString &alias, const BufferInfo &bufferInfo void UserInputHandler::putPrivmsg(const QByteArray &target, const QByteArray &message) { static const char *cmd = "PRIVMSG"; - int overrun = lastParamOverrun(cmd, QList() << message); + int overrun = lastParamOverrun(cmd, QList() << target << message); if(overrun) { static const char *splitter = " .,-"; int maxSplitPos = message.count() - overrun; @@ -501,7 +501,6 @@ int UserInputHandler::lastParamOverrun(const QString &cmd, const QListtimerId())) { QObject::timerEvent(event);