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