3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +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

12
run.js
View File

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