changeset 13684:4eb1247acf8f

Fixed bug with IRC client.
author Jacob Dawid <jacob.dawid@googlemail.com>
date Tue, 04 Oct 2011 21:21:29 +0200
parents 25dc40d24a44
children 8a688c3179dd
files gui/src/irc/IRCClientImpl.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gui/src/irc/IRCClientImpl.cpp	Fri Sep 30 12:34:37 2011 +0200
+++ b/gui/src/irc/IRCClientImpl.cpp	Tue Oct 04 21:21:29 2011 +0200
@@ -47,6 +47,7 @@
 
       // If it belongs to the prefix, it must be concatenanted neatlessly without
       // any spaces.
+      if (position < serverMessage.size())
       if (!serverMessage.at (position - 1).isSpace ())
         {
           while ((position < serverMessage.size ())
@@ -60,6 +61,7 @@
 
       // If it belongs to the prefix, it must be concatenanted neatlessly without
       // any spaces.
+      if (position < serverMessage.size())
       if (!serverMessage.at (position - 1).isSpace ())
         {
           while ((position < serverMessage.size ())