From a80f00038d8c1b676aed4574d7f430a3c069b025 Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 20 Jan 2013 16:35:17 +0000 Subject: [PATCH] showconfig and setconfig for root config options [#145] --- modules/admin/commands.js | 57 ++++++++++++++++++++++----------------- modules/dent/dent.js | 4 +++ 2 files changed, 36 insertions(+), 25 deletions(-) diff --git a/modules/admin/commands.js b/modules/admin/commands.js index 02dd0af..4547aae 100644 --- a/modules/admin/commands.js +++ b/modules/admin/commands.js @@ -5,21 +5,23 @@ var fs = require('fs'), var commands = function(dbot) { var getCurrentConfigPath = function(configKey) { - var configKey = configKey.split('.'); + var defaultConfigPath = dbot.config; + var userConfigPath = dbot.db.config; - defaultConfigPath = dbot.config; - userConfigPath = dbot.db.config; - for(var i=0;i