summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-09-23 10:55:53 -0400
committerJune McEnroe <june@causal.agency>2022-09-23 10:55:53 -0400
commit91ad4c416345b32e90c02b3f25581a1c41e00053 (patch)
tree267074b9b3dd528ae25e9c1ba5367699e5cde839
parentMake IRC Suite author consistent (diff)
downloadcatgirl-91ad4c416345b32e90c02b3f25581a1c41e00053.tar.gz
catgirl-91ad4c416345b32e90c02b3f25581a1c41e00053.zip
Handle missing LIST reply topic parameter
Diffstat (limited to '')
-rw-r--r--handle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/handle.c b/handle.c
index bbb3c99..74c3a28 100644
--- a/handle.c
+++ b/handle.c
@@ -1055,13 +1055,13 @@ static void handleReplyInviteList(struct Message *msg) {
 }
 
 static void handleReplyList(struct Message *msg) {
-	require(msg, false, 4);
+	require(msg, false, 3);
 	uiFormat(
 		Network, Warm, tagTime(msg),
 		"In \3%02d%s\3 are %ld under the banner: %s",
 		hash(msg->params[1]), msg->params[1],
 		strtol(msg->params[2], NULL, 10),
-		msg->params[3]
+		(msg->params[3] ?: "")
 	);
 }