fix thing disconnecting from room when receive notification for ban from different room

ez fix
regex would be better tho
This commit is contained in:
Lamp 2020-10-18 13:26:18 -07:00 committed by GitHub
parent 46555d28ef
commit af21719ace
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(' ');