3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +01:00

modules need to be created first

This commit is contained in:
Luke Slater 2011-09-14 17:31:26 +01:00
parent 1621e22ddd
commit ee671f81e2

2
run.js
View File

@ -30,11 +30,13 @@ DBot.prototype.save = function() {
}; };
DBot.prototype.reloadModules = function() { DBot.prototype.reloadModules = function() {
if(this.modules) {
this.modules.each(function(module) { this.modules.each(function(module) {
if(module.onDestroy) { if(module.onDestroy) {
module.onDestroy(); module.onDestroy();
} }
}); });
}
this.rawModules = []; this.rawModules = [];
this.modules = []; this.modules = [];