forked from GitHub/dbot
werent clearing pre-emit hooks on reload DUMBASS
This commit is contained in:
parent
74ec643208
commit
1d5f635f24
1
run.js
1
run.js
@ -163,6 +163,7 @@ DBot.prototype.reloadModules = function() {
|
|||||||
require('./snippets');
|
require('./snippets');
|
||||||
|
|
||||||
this.instance.removeListeners();
|
this.instance.removeListeners();
|
||||||
|
this.instance.clearHooks();
|
||||||
|
|
||||||
var name, moduleDir, config;
|
var name, moduleDir, config;
|
||||||
for(i=0;i<moduleNames.length;i++) {
|
for(i=0;i<moduleNames.length;i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user