From c73deb5974dc6d276b601b5bfefee90a21a080b2 Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 29 Dec 2013 18:15:16 +0000 Subject: [PATCH] fix some recursions in admin --- modules/admin/commands.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/admin/commands.js b/modules/admin/commands.js index 040b53a..c523212 100644 --- a/modules/admin/commands.js +++ b/modules/admin/commands.js @@ -46,8 +46,8 @@ var commands = function(dbot) { exec("git pull", function (error, stdout, stderr) { exec("git submodule update", function (error, stdout, stderr) { event.reply(dbot.t('gpull')); - commands['~reload'](event); - commands['~version'](event); + commands['reload'](event); + commands['version'](event); }.bind(this)); }.bind(this)); }, @@ -190,7 +190,7 @@ var commands = function(dbot) { if(_.has(dbot.config.modules, configPath[0])) { configPath.splice(0, 0, 'modules'); event.input[1] = configPath.join('.'); - this.commands['~setconfig'](event); + this.commands['setconfig'](event); return; } else { event.reply(dbot.t('new_config_key', { 'key': configPath })); @@ -261,7 +261,7 @@ var commands = function(dbot) { } event.params[1] = configPath.join('.'); - this.commands['~showconfig'](event); + this.commands['showconfig'](event); } }.bind(this)); } else {