automan null string names

This commit is contained in:
HF 2023-03-18 17:37:10 +01:00
parent 4b550920ef
commit 0607c70f24

View File

@ -402,7 +402,9 @@ export class ChatProvider {
} }
const country = user.regUser.flag || 'xx'; 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; const { ipSub } = user;
if (!user.banned) { if (!user.banned) {
banIP(ipSub, 'CHATBAN', 0, 1); banIP(ipSub, 'CHATBAN', 0, 1);