summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Robinson <joe@lc8n.com>2016-05-29 19:02:22 +0100
committerJoe Robinson <joe@lc8n.com>2016-05-29 19:02:22 +0100
commitcfe99ec801c0c2cf5b9d484332183a952a421da1 (patch)
tree5e28f39c1f5604c4f36afac32dcf23b8bd28f3ae
parentee5aa3740d500aa2f190f19ae8539b001098e23c (diff)
Fix join command
-rw-r--r--index.js4
1 files 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);
});
});