summary refs log tree commit diff stats
path: root/src/common/proto-irc.c
diff options
context:
space:
mode:
authoralicetries <92898519+alicetries@users.noreply.github.com>2021-10-21 01:56:05 +0100
committerPatrick <tingping@tingping.se>2021-10-20 20:48:29 -0500
commitf42f6af1b96f80280a2e5a5e2431dc32d2b8fd55 (patch)
treeb9dbadff590164b9a7abac38a37c0b75138f7c0d /src/common/proto-irc.c
parent9039a5d75ba854d00bfbd9bb5235ec547eeffbe1 (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/common/proto-irc.c')
-rw-r--r--src/common/proto-irc.c2
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;