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:
parent
1621e22ddd
commit
ee671f81e2
12
run.js
12
run.js
@ -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 = [];
|
||||
|
Loading…
Reference in New Issue
Block a user