X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fircparser.cpp;h=0d473981de7aa56bd4e4f36424e1198299639458;hp=f3db4fceab455ba03de4849452c2a9606204e690;hb=9e637b2c82e4c6222e33f07ce9944794a95b9b1a;hpb=9fe8b8324d6b2501220beba4cefe1902ac6bb153 diff --git a/src/core/ircparser.cpp b/src/core/ircparser.cpp index f3db4fce..0d473981 100644 --- a/src/core/ircparser.cpp +++ b/src/core/ircparser.cpp @@ -308,6 +308,11 @@ void IrcParser::processNetworkIncoming(NetworkDataEvent *e) for (int i = decParams.count(); i < params.count(); i++) decParams << net->serverDecode(params.at(i)); + // We want to trim the last param just in case, except for PRIVMSG and NOTICE + // ... but those happen to be the only ones not using defaultHandling anyway + if (!decParams.isEmpty() && decParams.last().endsWith(' ')) + decParams.append(decParams.takeLast().trimmed()); + IrcEvent *event; if (type == EventManager::IrcEventNumeric) event = new IrcEventNumeric(num, net, prefix, target);