From 6b8823d21380bfcae6d7629859ca85f658056523 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann Date: Wed, 11 Aug 2021 10:22:32 -0500 Subject: [PATCH] (irc) Better param parsing --- protocols/irc/IrcProtocol.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/irc/IrcProtocol.cpp b/protocols/irc/IrcProtocol.cpp index e05b704..486c269 100644 --- a/protocols/irc/IrcProtocol.cpp +++ b/protocols/irc/IrcProtocol.cpp @@ -523,9 +523,9 @@ IrcProtocol::_LineParameters(BStringList words, BString line) break; // Last parameter is preceded by a colon - int32 index = line.RemoveChars(0, 1).FindFirst(":"); + int32 index = line.RemoveChars(0, 1).FindFirst(" :"); if (index != B_ERROR) - params.Add(line.RemoveChars(0, index + 1)); + params.Add(line.RemoveChars(0, index + 2)); return params; }