do that in the righ tplace...

This commit is contained in:
reality 2013-01-22 00:39:04 +00:00
parent 5443752a8b
commit 80fec7b212

4
run.js
View File

@ -201,14 +201,14 @@ DBot.prototype.reloadModules = function() {
} }
}, this); }, this);
module.config = this.config[name];
// Load the module itself // Load the module itself
var rawModule = require(moduleDir + name); var rawModule = require(moduleDir + name);
var module = rawModule.fetch(this); var module = rawModule.fetch(this);
module.name = name; module.name = name;
this.rawModules.push(rawModule); this.rawModules.push(rawModule);
module.config = this.config[name];
// Load the module data // Load the module data
_.each([ 'commands', 'pages', 'api' ], function(property) { _.each([ 'commands', 'pages', 'api' ], function(property) {
var propertyObj = {}; var propertyObj = {};