diff --git a/modules/admin/admin.js b/modules/admin/admin.js index 93a0ae5..77e7668 100644 --- a/modules/admin/admin.js +++ b/modules/admin/admin.js @@ -9,52 +9,21 @@ var fs = require('fs'), var admin = function(dbot) { this.internalAPI = { 'getCurrentConfig': function(configKey, callback) { - if(configKey) { - this.db.read('config', configKey, function(err, cRecord) { - if(cRecord) { - callback(cRecord.value) - } else { - var configPath = dbot.config; - configKey = configKey.split('.'); + var configPath = dbot.config; + configKey = configKey.split('.'); - for(var i=0;i