From eafc2dbee10b9676c5e54f59475586a68fa2d799 Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 5 Jun 2013 20:13:40 +0000 Subject: [PATCH] fix config pointers in admin and imgur [#489] --- modules/admin/admin.js | 13 +++++++++++++ modules/imgur/imgur.js | 8 ++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/modules/admin/admin.js b/modules/admin/admin.js index 77e7668..25768a9 100644 --- a/modules/admin/admin.js +++ b/modules/admin/admin.js @@ -22,6 +22,19 @@ var admin = function(dbot) { } callback(configPath); + }, + + 'setConfig': function(configKey, newOption, callback) { + var configPath = dbot.config; + configKey = configKey.split('.'); + + for(var i=0;i