fix some recursions in admin

This commit is contained in:
reality 2013-12-29 18:15:16 +00:00
parent 6204df19c0
commit c73deb5974

View File

@ -46,8 +46,8 @@ var commands = function(dbot) {
exec("git pull", function (error, stdout, stderr) { exec("git pull", function (error, stdout, stderr) {
exec("git submodule update", function (error, stdout, stderr) { exec("git submodule update", function (error, stdout, stderr) {
event.reply(dbot.t('gpull')); event.reply(dbot.t('gpull'));
commands['~reload'](event); commands['reload'](event);
commands['~version'](event); commands['version'](event);
}.bind(this)); }.bind(this));
}.bind(this)); }.bind(this));
}, },
@ -190,7 +190,7 @@ var commands = function(dbot) {
if(_.has(dbot.config.modules, configPath[0])) { if(_.has(dbot.config.modules, configPath[0])) {
configPath.splice(0, 0, 'modules'); configPath.splice(0, 0, 'modules');
event.input[1] = configPath.join('.'); event.input[1] = configPath.join('.');
this.commands['~setconfig'](event); this.commands['setconfig'](event);
return; return;
} else { } else {
event.reply(dbot.t('new_config_key', { 'key': configPath })); event.reply(dbot.t('new_config_key', { 'key': configPath }));
@ -261,7 +261,7 @@ var commands = function(dbot) {
} }
event.params[1] = configPath.join('.'); event.params[1] = configPath.join('.');
this.commands['~showconfig'](event); this.commands['showconfig'](event);
} }
}.bind(this)); }.bind(this));
} else { } else {