From: Unknown Date: Thu, 3 Apr 2008 12:39:59 +0000 (+0000) Subject: Trim incoming lines again, apparently allowing trailing spaces has weird side-effect... X-Git-Tag: 0.2.0-alpha5~26 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=d474ca8e41ebb9b4f057876560ec93a60d06d0da;ds=sidebyside Trim incoming lines again, apparently allowing trailing spaces has weird side-effect for now. --- diff --git a/src/core/networkconnection.cpp b/src/core/networkconnection.cpp index a6d4e307..43749bcd 100644 --- a/src/core/networkconnection.cpp +++ b/src/core/networkconnection.cpp @@ -279,7 +279,7 @@ void NetworkConnection::disconnectFromIrc(bool requested) { void NetworkConnection::socketHasData() { while(socket.canReadLine()) { - QByteArray s = socket.readLine(); + QByteArray s = socket.readLine().trimmed(); ircServerHandler()->handleServerMsg(s); } }