Fix module onDisconnect not first checking if onDisconnect existed

This commit is contained in:
benji7425 2017-04-22 22:50:41 +01:00
parent d2d729b9c4
commit 60707bd0fb
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ var EventHandlers = {
for (let i = 0, len = BotModules.length; i < len; i++) {
let botModule = BotModules[i];
if (botModule.onReady) botModule.onDisconnect();
if (botModule.onDisconnect) botModule.onDisconnect();
}
bot.connect();