From d9f8ff0c1f19a85c77b936da19fdce5470f03898 Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 12 Jan 2013 14:58:54 +0000 Subject: [PATCH] lots of underscorisation in module loading --- run.js | 92 +++++++++++++++++++++------------------------------------- 1 file changed, 33 insertions(+), 59 deletions(-) diff --git a/run.js b/run.js index 7f36b9b..8e08e42 100644 --- a/run.js +++ b/run.js @@ -164,17 +164,19 @@ DBot.prototype.reloadModules = function() { // Load the module config data var config = {}; try { - var config = JSON.parse(fs.readFileSync(moduleDir + 'config.json', 'utf-8')) - this.config[name] = config; - for(var i=0;i