kangarko / ChatControl-Pro

The ultimate chat solution. Prevent spam, ads, swears and even bots on your server. Replaced by ChatControl Red: https://mineacademy.org/chatcontrol-red
Other
65 stars 8 forks source link

1.17.1: Struggling to filter "Anal" #2312

Closed SecretarySami closed 3 years ago

SecretarySami commented 3 years ago

So I was recently made aware that the word "anal" was no longer filtering , however I have not touched my match in weeks. I was originally using this match -

Blocks 'anal'

match ((\ba|\B\@)+(\W|\d|)*n+(\W|\d|)(a|\@)+(\W|\d|_)(i|1|l|!)+(\W|\d|_)*) ignore string a an|an a|analog|an all|an almost|an alt|an alarm|an algorithm|an albino|an alot|an almond|an album|analyze|an alligator|a na|ana|anas|anakin group swear

Then tried this one -

Blocks 'anal'

match \b(a+(\W|\d|)*n+(\W|\d|)a+(\W|\d|_)l+(\W|\d|_)*) ignore string a an|an a|analog|an all|an almost|an alt|an alarm|an algorithm|an albino|an alot|an almond|an album|analyze|an alligator|a na|ana|anas|anakin group swear

it's not seeming to block the word despite it being in there, i'm not sure where i went wrong on it and i'm still struggling to figure out regex.

SecretarySami commented 3 years ago

I also have a couple questions regarding grammar filtering as well if you guys have time for that :)

kangarko commented 3 years ago

For ChatControl Pro you need to replace "group swear" with "handle as swear"

SecretarySami commented 3 years ago

For ChatControl Pro you need to replace "group swear" with "handle as swear"

i just realized i did this for chatcontrol pro instead of red WOOOPS sorry kangarko xD