diff options
author | alicetries <92898519+alicetries@users.noreply.github.com> | 2021-10-21 01:56:05 +0100 |
---|---|---|
committer | Patrick <tingping@tingping.se> | 2021-10-20 20:48:29 -0500 |
commit | f42f6af1b96f80280a2e5a5e2431dc32d2b8fd55 (patch) | |
tree | b9dbadff590164b9a7abac38a37c0b75138f7c0d /src | |
parent | 9039a5d75ba854d00bfbd9bb5235ec547eeffbe1 (diff) |
Adjust parsing of RPL_WHOISSPECIAL to handle missing : for single-word whois messages
This is to support parsing the RPL_WHOISSPECIAL from unrealircd correctly if the whois message is a single word.
Diffstat (limited to 'src')
-rw-r--r-- | src/common/proto-irc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c index 49017506..a8d997b6 100644 --- a/src/common/proto-irc.c +++ b/src/common/proto-irc.c @@ -627,7 +627,7 @@ process_numeric (session * sess, int n, case 320: /* :is an identified user */ if (!serv->skip_next_whois) EMIT_SIGNAL_TIMESTAMP (XP_TE_WHOIS_ID, whois_sess, word[4], - word_eol[5] + 1, NULL, NULL, 0, + word_eol[5][0] == ':' ? word_eol[5] + 1 : word_eol[5], NULL, NULL, 0, tags_data->timestamp); break; |