From 0c6fdf826fc39e0bcc2ab73493cdd16c46cee639 Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 24 Jul 2013 22:33:03 +0000 Subject: [PATCH] output in setconfig fix --- modules/admin/commands.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/admin/commands.js b/modules/admin/commands.js index f904c4f..7d97d03 100644 --- a/modules/admin/commands.js +++ b/modules/admin/commands.js @@ -185,11 +185,12 @@ var commands = function(dbot) { event.reply(dbot.t("config_array", { "alternate": "pushconfig" })); } } else { + event.reply(dbot.t("no_config_key", {'path': configPath})); configPath = configPath.split('.'); if(_.has(dbot.config.modules, configPath[0])) { configPath.splice(0, 0, 'modules'); event.params[1] = configPath.join('.'); - this.commands['~showconfig'](event); + this.commands['~setconfig'](event); return; } else { event.reply(dbot.t('new_config_key', { 'key': configPath }));