From b33db80b2c0e4bd963cb29616a4096de5b77fa21 Mon Sep 17 00:00:00 2001 From: Cory Chaplin Date: Sun, 23 Feb 2014 22:50:20 +0100 Subject: [PATCH] Make the '#' optional in join command --- client/src/models/application.js | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.25.1