Filter out !chat commands
This commit is contained in:
parent
f839c18eee
commit
0073735647
|
@ -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…
Reference in New Issue
Block a user