Filter out !chat commands

This commit is contained in:
Tanner Collin 2023-03-22 10:58:36 -06:00
parent f839c18eee
commit 0073735647

View File

@ -360,7 +360,12 @@ function checkMessages(options) {
options=options||{}; options=options||{};
var goBack = false; var goBack = false;
while (MESSAGES.length && MESSAGES[0].title == "Timer") { while (MESSAGES.length && (
MESSAGES[0].title == "Timer" ||
MESSAGES[0].title.startsWith("Protostable Chatspace") ||
MESSAGES[0].body.toLowerCase().startsWith("!chat") ||
MESSAGES[0].body.toLowerCase().startsWith("! chat")
)) {
MESSAGES.pop(0); MESSAGES.pop(0);
goBack = true; goBack = true;
} }