summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe2022-09-23 10:55:53 -0400
committerJune McEnroe2022-09-23 10:55:53 -0400
commit91ad4c416345b32e90c02b3f25581a1c41e00053 (patch)
tree267074b9b3dd528ae25e9c1ba5367699e5cde839
parent0b797370e204d2716ef00e3d803a430dcc6f5969 (diff)
Handle missing LIST reply topic parameter
-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] ?: "")
 	);
 }