From 22eceaadc5a659e09fd41edbd073fe6e7bb5baec Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 25 Dec 2019 13:07:26 -0500 Subject: Only send JOIN if there are channels to join --- litterbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litterbox.c b/litterbox.c index baaf780..5c18021 100644 --- a/litterbox.c +++ b/litterbox.c @@ -271,7 +271,7 @@ static void handleCap(struct Message *msg) { static void handleReplyWelcome(struct Message *msg) { require(msg, false, 1); set(&self, msg->params[0]); - format("JOIN :%s\r\n", join); + if (join) format("JOIN :%s\r\n", join); } static void handleReplyISupport(struct Message *msg) { -- cgit 1.4.1