diff options
author | Joe Robinson <joe@lc8n.com> | 2016-05-29 19:02:22 +0100 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2016-05-29 19:02:22 +0100 |
commit | cfe99ec801c0c2cf5b9d484332183a952a421da1 (patch) | |
tree | 5e28f39c1f5604c4f36afac32dcf23b8bd28f3ae | |
parent | ee5aa3740d500aa2f190f19ae8539b001098e23c (diff) |
Fix join command
-rw-r--r-- | index.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); }); }); |