summary refs log tree commit diff
diff options
context:
space:
mode:
authorC. McEnroe2020-02-06 01:03:21 -0500
committerC. McEnroe2020-02-06 01:03:21 -0500
commitdb499dc5f50dba23c2ab218d439cfce51c41bc6b (patch)
tree746e3fac411890f144b027f7e5b1907d094e0157
parent3085779d86f3ed66bd24eccf1f64ffc1bd71afcd (diff)
Send self.join without colon
If someone is weird enough to use channel keys, they can -j '#foo key'.
-rw-r--r--handle.c2
1 files changed, 1 insertions, 1 deletions
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) {