From 1a5f809bdc7c2b99242987aa7da0c447c2412bdf Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 29 Dec 2013 18:23:35 +0000 Subject: [PATCH] fix the commands --- 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 98b64a9..f2ce66a 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); + 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); + commands['~showconfig'](event); } }.bind(this)); } else {