View Full Version : Swear Filter Parameters
Da_Bears
01-02-2004, 02:08 AM
I had players get warned of their language for saying assist and document. Assist for the first three letters and document for letters 3, 4 and 5. Is there something that I can do so that is these three letters are in the filter, it will not warn people if they are in the word they are using?
I would like to see someone get warned for saying cum, but not saying cumulative.
Parrot
01-02-2004, 09:22 AM
same thing here w/ swatch. i'd like to know if we can make the expressions must match exactly?
Da_Bears
01-03-2004, 05:17 AM
I think the correct regexp is ^.*\b(cum)\b.*$ but I have not had a chance to test it yet. SW quit accessing the log file at the time I found this. It passed the Test a Regular Expression that comes with SW. I tried document, cumulative, cum and same cum anyone.
It did not accept document or cumulative, but did accept cum and same cum anyone.
Once I get a chance to test it in action, I will post my results here.
Parrot
01-03-2004, 01:42 PM
that is great news. Let me know how you make out. Thanks.
Da_Bears
01-03-2004, 03:41 PM
It works great. I made one change, and that is to allow it to ignore upper and lower case. ^.*\b(?i)(cum)\b.*$ will allow only the words cum, Cum, CUm, CUM, cUm, cUM and cuM or any of the deriatives to be given a warning. Any other word containing these three letters will not get a warning.
Floyd
01-03-2004, 10:28 PM
Great! I gotta learn regular expressions rules :oops:
Can the same thing be done for player nicks?
Floyd
Da_Bears
01-03-2004, 11:03 PM
Working on that now. Trying to figure out exactly how they have to be since the tag uses a command from regexp, so that has to be cancelled out. Hopefully this will take less than the time it took for the swear filter.
BATMAN122
01-28-2004, 05:51 PM
So really all i have to do is just copy and paste your
^.*\b(?i)(XXXXXX)\b.*$ and where XXXXXXX is put in other bad words? Is there anything else that i need to do?
Da_Bears
01-30-2004, 11:35 PM
That should be all you have to do.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.