From 80fec7b2128c5c44be959fbe5125e74958755373 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 22 Jan 2013 00:39:04 +0000 Subject: [PATCH] do that in the righ tplace... --- run.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.js b/run.js index 9ace45c..b2c8b81 100644 --- a/run.js +++ b/run.js @@ -201,14 +201,14 @@ DBot.prototype.reloadModules = function() { } }, this); - module.config = this.config[name]; - // Load the module itself var rawModule = require(moduleDir + name); var module = rawModule.fetch(this); module.name = name; this.rawModules.push(rawModule); + module.config = this.config[name]; + // Load the module data _.each([ 'commands', 'pages', 'api' ], function(property) { var propertyObj = {};