From 00737356473015ba2f01e203a233d20c5d22cb4c Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Wed, 22 Mar 2023 10:58:36 -0600 Subject: [PATCH] Filter out !chat commands --- messagegui/messagegui.app.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/messagegui/messagegui.app.js b/messagegui/messagegui.app.js index ec9fff8..682e474 100644 --- a/messagegui/messagegui.app.js +++ b/messagegui/messagegui.app.js @@ -360,7 +360,12 @@ function checkMessages(options) { options=options||{}; 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); goBack = true; }