From c6f09dd0f9218255901ab983f3675170716dbd12 Mon Sep 17 00:00:00 2001 From: Darren Date: Thu, 8 Nov 2012 15:03:19 +0000 Subject: [PATCH] Client: Escaping // at the start of an input message #123 --- client/assets/dev/view.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/assets/dev/view.js b/client/assets/dev/view.js index 0da683d..091669e 100644 --- a/client/assets/dev/view.js +++ b/client/assets/dev/view.js @@ -838,7 +838,11 @@ _kiwi.view.ControlBox = Backbone.View.extend({ pre_processed; // The default command - if (command_raw[0] !== '/') { + if (command_raw[0] !== '/' || command_raw.substr(0, 2) === '//') { + // Remove any slash escaping at the start (ie. //) + command_raw = command_raw.replace(/^\/\//, '/'); + + // Prepend the default command command_raw = '/msg ' + _kiwi.app.panels.active.get('name') + ' ' + command_raw; } -- 2.25.1