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:
parent
46555d28ef
commit
af21719ace
|
@ -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(' ');
|
||||
|
|
Loading…
Reference in New Issue