diff --git a/src/mppbridger/index.js b/src/mppbridger/index.js index e57e3fb..d01a680 100755 --- a/src/mppbridger/index.js +++ b/src/mppbridger/index.js @@ -96,6 +96,7 @@ global.createMPPbridge = function createMPPbridge(room, DiscordChannelID, site = lastCh = msg.ch._id; }); + gClient.on("disconnect", () => lastCh = undefined); }