From: Cory Chaplin Date: Sun, 23 Feb 2014 21:50:20 +0000 (+0100) Subject: Make the '#' optional in join command X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b33db80b2c0e4bd963cb29616a4096de5b77fa21;p=KiwiIRC.git Make the '#' optional in join command --- diff --git a/client/src/models/application.js b/client/src/models/application.js index bc60a95..df79770 100644 --- a/client/src/models/application.js +++ b/client/src/models/application.js @@ -679,6 +679,11 @@ function joinCommand (ev) { var panels, channel_names; + // Add a # in front of the first channel if missing + if (ev.params[0].substring(0,1) != '#') { + ev.params[0] = '#' + ev.params[0]; + } + channel_names = ev.params.join(' ').split(','); panels = this.connections.active_connection.createAndJoinChannels(channel_names);