forked from ppfun/pixelplanet
end ban of cyrillic in en channel
This commit is contained in:
parent
4169bf8d8a
commit
a2ac51929d
|
@ -21,7 +21,6 @@ export class ChatProvider {
|
|||
this.history.push([]);
|
||||
}
|
||||
this.caseCheck = /^[A-Z !.]*$/;
|
||||
this.cyrillic = new RegExp('[\u0436-\u043B]');
|
||||
this.filters = [
|
||||
{
|
||||
regexp: /ADMIN/gi,
|
||||
|
@ -82,10 +81,6 @@ export class ChatProvider {
|
|||
return 'Stop shouting';
|
||||
}
|
||||
|
||||
if (message.match(this.cyrillic) && channelId === 0) {
|
||||
return 'Please use int channel';
|
||||
}
|
||||
|
||||
for (let i = 0; i < this.filters.length; i += 1) {
|
||||
const filter = this.filters[i];
|
||||
const count = (message.match(filter.regexp) || []).length;
|
||||
|
|
Loading…
Reference in New Issue
Block a user