proto-irc.c: handle WHOX replies with realnames that aren't :-prefixed

the colon is not required if the last argument is a single word

this was causing issues where the user info context menu was stripping
the first character of single-word realnames when sending the WHOX
command `WHO #channel %chtsunfra,152`. Discovered the issue by seeing that
plain `WHO #channel` fixed the issue temporarily.
This commit is contained in:
classabbyamp 2023-08-06 10:44:27 -04:00 committed by classabbyamp
parent cda96128b8
commit e1bff829a0
No known key found for this signature in database
GPG Key ID: 6BE0755918A4C7F5

View File

@ -762,7 +762,7 @@ process_numeric (session * sess, int n,
/* :server 354 yournick 152 #channel ~ident host servname nick H account :realname */
inbound_user_info (sess, word[5], word[6], word[7], word[8],
word[9], word_eol[12]+1, word[11], away,
word[9], word_eol[12][0] == ':' ? word_eol[12] + 1 : word_eol[12], word[11], away,
tags_data);
/* try to show only user initiated whos */