Filter out !chat commands

master
Tanner Collin 1 year ago
parent f839c18eee
commit 0073735647
  1. 7
      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;
}

Loading…
Cancel
Save