3
0
mirror of https://github.com/reality/dbot.git synced 2025-01-12 04:52:36 +01:00

link this.config to module config

This commit is contained in:
reality 2013-01-22 00:28:50 +00:00
parent 3b3aa280e0
commit 5443752a8b

2
run.js
View File

@ -201,6 +201,8 @@ DBot.prototype.reloadModules = function() {
}
}, this);
module.config = this.config[name];
// Load the module itself
var rawModule = require(moduleDir + name);
var module = rawModule.fetch(this);