From 2b7ea3ec3f34f16dbc8a1833c0d529dd49ad0f96 Mon Sep 17 00:00:00 2001 From: Astrid Halberkamp Date: Fri, 18 Oct 2019 23:14:31 +0200 Subject: [PATCH] more false positive fixes --- server/chat-plugins/chat-monitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/chat-plugins/chat-monitor.js b/server/chat-plugins/chat-monitor.js index ad2c90d639..af3dcd8ec8 100644 --- a/server/chat-plugins/chat-monitor.js +++ b/server/chat-plugins/chat-monitor.js @@ -144,7 +144,7 @@ Chat.registerMonitor('evasion', { monitor(line, room, user, message, lcMessage, isStaff) { let [regex, word, reason] = line; // Remove spaces and obvious false positives - lcMessage = lcMessage.replace(/niger/g, ''); + lcMessage = lcMessage.replace(/niger/g, '').replace(/fagot/g, ''); lcMessage = lcMessage.replace(/[\s-_]/g, ''); const match = lcMessage.match(regex); if (match) {