comparison gui/src/irc/IRCClientImpl.cpp @ 13684:4eb1247acf8f

Fixed bug with IRC client.
author Jacob Dawid <jacob.dawid@googlemail.com>
date Tue, 04 Oct 2011 21:21:29 +0200
parents e272af3f252d
children
comparison
equal deleted inserted replaced
13683:25dc40d24a44 13684:4eb1247acf8f
45 } 45 }
46 m_nick = buffer, buffer.clear (), position++; 46 m_nick = buffer, buffer.clear (), position++;
47 47
48 // If it belongs to the prefix, it must be concatenanted neatlessly without 48 // If it belongs to the prefix, it must be concatenanted neatlessly without
49 // any spaces. 49 // any spaces.
50 if (position < serverMessage.size())
50 if (!serverMessage.at (position - 1).isSpace ()) 51 if (!serverMessage.at (position - 1).isSpace ())
51 { 52 {
52 while ((position < serverMessage.size ()) 53 while ((position < serverMessage.size ())
53 && serverMessage.at (position) != '@') 54 && serverMessage.at (position) != '@')
54 { 55 {
58 m_user = buffer, buffer.clear (), position++; 59 m_user = buffer, buffer.clear (), position++;
59 } 60 }
60 61
61 // If it belongs to the prefix, it must be concatenanted neatlessly without 62 // If it belongs to the prefix, it must be concatenanted neatlessly without
62 // any spaces. 63 // any spaces.
64 if (position < serverMessage.size())
63 if (!serverMessage.at (position - 1).isSpace ()) 65 if (!serverMessage.at (position - 1).isSpace ())
64 { 66 {
65 while ((position < serverMessage.size ()) 67 while ((position < serverMessage.size ())
66 && serverMessage.at (position) != ' ') 68 && serverMessage.at (position) != ' ')
67 { 69 {