ban cyrillic from en again
This commit is contained in:
parent
4d830794ce
commit
94c26f0ee2
|
@ -21,6 +21,7 @@ export class ChatProvider {
|
|||
this.history.push([]);
|
||||
}
|
||||
this.caseCheck = /^[A-Z !.]*$/;
|
||||
this.cyrillic = new RegExp('[\u0436-\u043B]');
|
||||
this.filters = [
|
||||
{
|
||||
regexp: /ADMIN/gi,
|
||||
|
@ -145,6 +146,10 @@ export class ChatProvider {
|
|||
}
|
||||
}
|
||||
|
||||
if (message.match(this.cyrillic) && channelId === 0) {
|
||||
return 'Please use int channel';
|
||||
}
|
||||
|
||||
if (this.mutedCountries.includes(country)) {
|
||||
return 'Your country is temporary muted from chat';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user