From cfe99ec801c0c2cf5b9d484332183a952a421da1 Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Sun, 29 May 2016 19:02:22 +0100 Subject: Fix join command --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 7effc5b..223fd94 100644 --- a/index.js +++ b/index.js @@ -98,7 +98,7 @@ $("#send-message").keypress(function(e) { var message = $("#send-message").val(); var channel = $(".tab.active").attr("data-tab").replace("chan-", "#") if (message.indexOf("/join") == 0) { - joinChannel(message.substring(6, message.length)); + joinChannel(message.substring(6, message.length), true); } else if (message.indexOf("/part") == 0) { if (message.length > 6) { channel = message.substring(6, message.length); @@ -242,7 +242,7 @@ client.addListener('error', function(message) { client.addListener('registered', function() { channels.forEach(function(channel) { - joinChannel(channel); + joinChannel(channel, false); }); }); -- cgit v1.2.3