From 0e1ce055fd22c449e7d11984f8ca5ca7eded9522 Mon Sep 17 00:00:00 2001 From: Darren Date: Fri, 27 Jun 2014 23:59:02 +0100 Subject: [PATCH] /alias command fixes --- client/src/misc/clientuicommands.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/misc/clientuicommands.js b/client/src/misc/clientuicommands.js index dd2adc8..eff0dcf 100644 --- a/client/src/misc/clientuicommands.js +++ b/client/src/misc/clientuicommands.js @@ -144,7 +144,7 @@ // No parameters passed so list them if (!ev.params[1]) { - $.each(controlbox.preprocessor.aliases, function (name, rule) { + $.each(this.controlbox.preprocessor.aliases, function (name, rule) { that.app.panels().server.addMsg(' ', styleText('list_aliases', {text: name + ' => ' + rule})); }); return; @@ -154,7 +154,7 @@ if (ev.params[0] === 'del' || ev.params[0] === 'delete') { name = ev.params[1]; if (name[0] !== '/') name = '/' + name; - delete controlbox.preprocessor.aliases[name]; + delete this.controlbox.preprocessor.aliases[name]; return; } @@ -167,7 +167,7 @@ if (name[0] !== '/') name = '/' + name; // Now actually add the alias - controlbox.preprocessor.aliases[name] = rule; + this.controlbox.preprocessor.aliases[name] = rule; }; -- 2.25.1