Is there a way I can change the code to sensor the whole sentence the offending word is in like Eccid's code did? I took his:
if string.find(string.lower(text), b, 1, true) then --Is a word being used?
if KickWords.censor then text = "
" end --What to print if censored.
and tried several ways to work it into your addon, but I continually failed.
Here is why I want to censor the whole sentence:
1) profanity rages often contain a lot of foul words in the one sentence. I can't anticipate and block ever word. Also, the offending plyr gets more of a punishment (without kicking) if his entire sentence is blocked and gives up quickly.
2) I use this to block http:, www., ,com, etc. I want the whole link blocked not just that part, which is what Eccid's script did. Otherwise, players will see ***pornhub****, etc