mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -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 */
|
/* split hops/realname */
|
||||||
hops = realname;
|
hops = realname;
|
||||||
while (*realname != '\0' && *realname != ' ') realname++;
|
while (*realname != '\0' && *realname != ' ') realname++;
|
||||||
while (*realname == ' ') realname++;
|
if (*realname == ' ')
|
||||||
if (realname > hops) realname[-1] = '\0';
|
*realname++ = '\0';
|
||||||
|
|
||||||
printformat(server, NULL, MSGLEVEL_CRAP, IRCTXT_WHO,
|
printformat(server, NULL, MSGLEVEL_CRAP, IRCTXT_WHO,
|
||||||
channel, nick, stat, hops, user, host, realname, serv);
|
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 */
|
/* get hop count */
|
||||||
hops = realname;
|
hops = realname;
|
||||||
while (*realname != '\0' && *realname != ' ') realname++;
|
while (*realname != '\0' && *realname != ' ') realname++;
|
||||||
*realname++ = '\0';
|
if (*realname == ' ')
|
||||||
while (*realname == ' ') realname++;
|
*realname++ = '\0';
|
||||||
|
|
||||||
/* update host, realname, hopcount */
|
/* update host, realname, hopcount */
|
||||||
chanrec = channel_find(server, channel);
|
chanrec = channel_find(server, channel);
|
||||||
|
Loading…
Reference in New Issue
Block a user