From 6c992d7e0742059c4da01338daae5c85fe54f7b1 Mon Sep 17 00:00:00 2001 From: Lamp Date: Mon, 26 Nov 2018 14:50:17 -0800 Subject: [PATCH] fix announce channel join/change not working on reconnect --- src/mppbridger/index.js | 1 + 1 file changed, 1 insertion(+) 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); }