From 0607c70f240b88463013efe9142f7563b86049da Mon Sep 17 00:00:00 2001 From: HF Date: Sat, 18 Mar 2023 17:37:10 +0100 Subject: [PATCH] automan null string names --- src/core/ChatProvider.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/ChatProvider.js b/src/core/ChatProvider.js index 129c775..a15ab15 100644 --- a/src/core/ChatProvider.js +++ b/src/core/ChatProvider.js @@ -402,7 +402,9 @@ export class ChatProvider { } const country = user.regUser.flag || 'xx'; - if (this.autobanPhrase && message.includes(this.autobanPhrase)) { + if (name.trim() === '' + || (this.autobanPhrase && message.includes(this.autobanPhrase)) + ) { const { ipSub } = user; if (!user.banned) { banIP(ipSub, 'CHATBAN', 0, 1);