summaryrefslogtreecommitdiff
path: root/src/irc/core
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@irssi.org>2007-05-20 19:29:38 +0000
committerjilles <jilles@dbcabf3a-b0e7-0310-adc4-f8d773084564>2007-05-20 19:29:38 +0000
commitbf937e5e69d0d858f56cc6c87ee3731690435aaf (patch)
tree71e6f7e66ae25a0a663172760629b6c091a88ef4 /src/irc/core
parent433c3795aeeab5913ce0297ba25af14892e8517e (diff)
downloadirssi-bf937e5e69d0d858f56cc6c87ee3731690435aaf.zip
Fix recognition of realnames starting with spaces in /who replies.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4507 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core')
-rw-r--r--src/irc/core/irc-nicklist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/core/irc-nicklist.c b/src/irc/core/irc-nicklist.c
index f736746a..b60056a8 100644
--- a/src/irc/core/irc-nicklist.c
+++ b/src/irc/core/irc-nicklist.c
@@ -212,8 +212,8 @@ static void event_who(SERVER_REC *server, const char *data)
/* get hop count */
hops = realname;
while (*realname != '\0' && *realname != ' ') realname++;
- *realname++ = '\0';
- while (*realname == ' ') realname++;
+ if (*realname == ' ')
+ *realname++ = '\0';
/* update host, realname, hopcount */
chanrec = channel_find(server, channel);