From 0e48307613aceecff6ed16c3ebb8152a0167427a Mon Sep 17 00:00:00 2001 From: HF Date: Sat, 2 May 2020 23:02:07 +0200 Subject: [PATCH] remove some chat filters again --- src/core/ChatProvider.js | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/src/core/ChatProvider.js b/src/core/ChatProvider.js index db858a6..f72aa68 100644 --- a/src/core/ChatProvider.js +++ b/src/core/ChatProvider.js @@ -29,35 +29,19 @@ class ChatProvider { this.filters = [ { regexp: /ADMIN/gi, - matches: 3, + matches: 4, }, { regexp: /ADMlN/gi, - matches: 3, + matches: 4, }, { regexp: /ADMlN/gi, - matches: 3, - }, - { - regexp: /lCE CREAM/gi, - matches: 3, - }, - { - regexp: /ICE CREAM/gi, - matches: 1, - }, - { - regexp: /JEBAĆ/gi, - matches: 2, + matches: 4, }, { regexp: /FUCK/gi, - matches: 3, - }, - { - regexp: /FACK/gi, - matches: 3, + matches: 4, }, ]; this.substitutes = [ @@ -93,7 +77,7 @@ class ChatProvider { return 'Your mail has to be verified in order to chat'; } - if (message.length > 1 + if (message.length > 2 && message === message.toUpperCase() && message !== message.toLowerCase() ) {