From 7592a6caa42f89d354c24e0312ff4d5ad00aca18 Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 5 Jun 2013 22:15:17 +0000 Subject: [PATCH] pushconfig operational [#489] --- modules/admin/commands.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/modules/admin/commands.js b/modules/admin/commands.js index 66bdb63..beb9119 100644 --- a/modules/admin/commands.js +++ b/modules/admin/commands.js @@ -208,17 +208,12 @@ var commands = function(dbot) { if(_.isArray(config)) { event.reply(configPath + ": " + config + " << " + newOption); config.push(newOption); - this.db.save('config', configPath, { - 'key': configPath, - 'value': config - }, function(err) { - dbot.reloadModules(); - }); + this.internalAPI.setConfig(configPath, config, function(err) {}); } else { event.reply(dbot.t("config_array", { "alternate": "setconfig" })); } } else { - event.reply(dbot.t("no_config_key")); + event.reply(dbot.t("no_config_key", { 'path': configPath })); } }.bind(this)); } else {