From af21719acee8b1247677f0c717b81639dd21ed5a Mon Sep 17 00:00:00 2001 From: Lamp Date: Sun, 18 Oct 2020 13:26:18 -0700 Subject: [PATCH] fix thing disconnecting from room when receive notification for ban from different room ez fix regex would be better tho --- src/mppbridger/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mppbridger/index.js b/src/mppbridger/index.js index 2b20e99..180435e 100755 --- a/src/mppbridger/index.js +++ b/src/mppbridger/index.js @@ -205,7 +205,7 @@ global.createMPPbridge = function createMPPbridge(room, DiscordChannelID, site = }); // handle bans - if (msg.text && (msg.text.startsWith('Banned from') || msg.text.startsWith('Currently banned from'))) { + if (msg.text && (msg.text.startsWith('Banned from "'+room+'"') || msg.text.startsWith('Currently banned from "'+room+'"'))) { // Banned from "{room}" for {n} minutes. // Currently banned from "{room}" for {n} minutes. let arr = msg.text.split(' ');