diff options
-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); }); }); |