[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [konversation] src/irc: Fix parsing of prefix
From:       Peter Simonsson <peter.simonsson () gmail ! com>
Date:       2016-09-11 14:18:39
Message-ID: E1bj5ah-0000f3-RA () code ! kde ! org
[Download RAW message or body]

Git commit 43190f3b8b1f4d27a4350a2306665ac4e360bd5e by Peter Simonsson.
Committed on 11/09/2016 at 14:17.
Pushed by psn into branch 'master'.

Fix parsing of prefix

M  +1    -1    src/irc/inputfilter.cpp

http://commits.kde.org/konversation/43190f3b8b1f4d27a4350a2306665ac4e360bd5e

diff --git a/src/irc/inputfilter.cpp b/src/irc/inputfilter.cpp
index e5adfec..fa68587 100644
--- a/src/irc/inputfilter.cpp
+++ b/src/irc/inputfilter.cpp
@@ -73,7 +73,7 @@ void InputFilter::parseLine(const QString& line)
 
     if (line[start]==QLatin1Char(':'))
     {
-        prefix = line.mid(start + 1, end - 1); //skips the colon and does not \
include the trailing space +        prefix = line.mid(start + 1, end - start - 1); \
//skips the colon and does not include the trailing space  start = end + 1;
         end = posOrLen(' ', line, start);
     }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic