From: Darren Date: Fri, 27 Jun 2014 22:59:02 +0000 (+0100) Subject: /alias command fixes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0e1ce055fd22c449e7d11984f8ca5ca7eded9522;p=KiwiIRC.git /alias command fixes --- 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; };