cursefilter

ET Pro Documentation Project

Moderators: Forum moderators, developers, ET Pro Documentation

Post Reply
User avatar
bani
Site Admin
Posts: 2780
Joined: Sun Jul 21, 2002 3:58 am
Contact:

cursefilter

Post by bani »

Admins may enforce filters on public text chats. While the primary use is for keeping cursing under control, some admins have made creative use of the filter to prevent accidental security leaks, such as filtering rcon password typos.

fireteam chats are never filtered, the logic behind this is that players who find someone's fireteam chats offensive may simply eject the offending player from the fireteam, or leave the fireteam themselves.

How to use:
b_cursefilter is a space separated list of words the cursefilter will watch for.
b_cursefilteraction is the action to take when a word on the watchlist is found. there are 4 possible settings:
0 - do nothing
1 - silently drop the chat (player sees their chat, but nobody else does)
2 - censor b_cursefilter words with asterisks
3 - (default) totally block any chat containing a b_cursefulter word
User avatar
Ragnar_40k
Posts: 394
Joined: Thu Mar 18, 2004 5:18 pm
Location: Berlin, birthplace of the Döner
Contact:

Post by Ragnar_40k »

What is the max. (string)length for b_cursefilter?
Additionally I would make 2 - censor b_cursefilter the default (a good way to find more words to filter ;-))
Does it filter words with odd spelling (e.g. f u c k (with spaces), f-u-c-k (hyphens) or included color codes (some players have binds for such stuff))?
The Emperor watch over you.
User avatar
=FF=im2good4u
Posts: 3821
Joined: Wed Feb 05, 2003 7:30 am
Location: The Netherlands, HOLLAND
Contact:

Post by =FF=im2good4u »

no it doesnt do work whit odd spelling to block f u c k you got a prob :lol:

also fro admin watch verry carefully witch words you add caz if you add like

Code: Select all

b_cursefilter "ass"
it will also filter class password asassin
User avatar
Ragnar_40k
Posts: 394
Joined: Thu Mar 18, 2004 5:18 pm
Location: Berlin, birthplace of the Döner
Contact:

Post by Ragnar_40k »

=FF=im2weak4u wrote:no it doesnt do work whit odd spelling to block f u c k you got a prob :lol:
My thoughts were that its is something like that:
1. Compress string, this inlcudes:
a) Remove color codes.
b) Strip of any non letters characters
c) Make all text lower case.
2. Now make the check - scan for bad words.
3. When you find a censored word check if its enclosed by non letter characters in the original string -> if yes: bingo.

(To do this you need to store the original letter position together with the "compressed" version of the string).

This should find odd spelled words and will leave partial words untoched.
It wont find any 1337 stuff, but when you can read it, then you a real h4x0r and you will be able to bear some explicit speech.
The Emperor watch over you.
User avatar
KingJackaL
Posts: 666
Joined: Thu Jan 08, 2004 3:47 pm
Location: ChCh, NZ
Contact:

Post by KingJackaL »

But then you start censoring alllll sorts of unexpected text strings, like "rush it" :lol:

Sure it's not perfect and you'll never catch EVERYTHING, but meh - if you want to catch everything, just disallow chatting entirely ( b_cursefilter "a b c d e f g h i j k l m n o p q r s t u v w x y z" :lol: ).

What I wish you could do, is have the string comma delimited ( so you could include a significant space within the string, for example "ref ", not "ref" - would stop words like 'prefer' getting censored ). But it's a very minor niggle - for the most part it's a pretty sweet system :).
User avatar
Ragnar_40k
Posts: 394
Joined: Thu Mar 18, 2004 5:18 pm
Location: Berlin, birthplace of the Döner
Contact:

Post by Ragnar_40k »

KingJackaL wrote:But then you start censoring alllll sorts of unexpected text strings, like "rush it"
1. Compress: "rush it" -> "rushit"
2. Found bad word: "shit"
3. Check ith original string: character "shit" = 'u', character after "shit" = 0x00.

Result:
Found word is enclosed by at least one letter (the 'u') -> no need to censor it.
The Emperor watch over you.
User avatar
KingJackaL
Posts: 666
Joined: Thu Jan 08, 2004 3:47 pm
Location: ChCh, NZ
Contact:

Post by KingJackaL »

Ah, but now you're going to miss typo's.

"you are ashit player"

...would now not get censored. I don't really see the value in a more complex filtering process like that. No matter how far you go, there will be a way around it, and chances are good you'll end up filtering a lot of legitimate phrases.
Post Reply