mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
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
This commit is contained in:
parent
433c3795ae
commit
bf937e5e69
@ -115,8 +115,8 @@ static void event_who(IRC_SERVER_REC *server, const char *data)
|
||||
/* split hops/realname */
|
||||
hops = realname;
|
||||
while (*realname != '\0' && *realname != ' ') realname++;
|
||||
while (*realname == ' ') realname++;
|
||||
if (realname > hops) realname[-1] = '\0';
|
||||
if (*realname == ' ')
|
||||
*realname++ = '\0';
|
||||
|
||||
printformat(server, NULL, MSGLEVEL_CRAP, IRCTXT_WHO,
|
||||
channel, nick, stat, hops, user, host, realname, serv);
|
||||
|
@ -212,8 +212,8 @@ static void event_who(SERVER_REC *server, const char *data)
|
||||
/* get hop count */
|
||||
hops = realname;
|
||||
while (*realname != '\0' && *realname != ' ') realname++;
|
||||
if (*realname == ' ')
|
||||
*realname++ = '\0';
|
||||
while (*realname == ' ') realname++;
|
||||
|
||||
/* update host, realname, hopcount */
|
||||
chanrec = channel_find(server, channel);
|
||||
|
Loading…
Reference in New Issue
Block a user