From db499dc5f50dba23c2ab218d439cfce51c41bc6b Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Thu, 6 Feb 2020 01:03:21 -0500 Subject: Send self.join without colon If someone is weird enough to use channel keys, they can -j '#foo key'. --- handle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handle.c b/handle.c index 89ebcb2..a111b16 100644 --- a/handle.c +++ b/handle.c @@ -149,7 +149,7 @@ static void handleErrorSASLFail(struct Message *msg) { static void handleReplyWelcome(struct Message *msg) { require(msg, false, 1); set(&self.nick, msg->params[0]); - if (self.join) ircFormat("JOIN :%s\r\n", self.join); + if (self.join) ircFormat("JOIN %s\r\n", self.join); } static void handleReplyISupport(struct Message *msg) { -- cgit 1.4.1-2-gfad0