banimod / etpro / ettv forums Forum Index banimod / etpro / ettv forums
Bani's Discussion Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

cursefilter

 
Post new topic   Reply to topic    banimod / etpro / ettv forums Forum Index -> ET Pro Documentation
View previous topic :: View next topic  
Author Message
bani
Site Admin


Joined: 21 Jul 2002
Posts: 3685

PostPosted: Fri Apr 16, 2004 12:23 am    Post subject: cursefilter Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ragnar_40k



Joined: 18 Mar 2004
Posts: 394
Location: Berlin, birthplace of the Döner

PostPosted: Fri Apr 16, 2004 2:08 am    Post subject: Reply with quote

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 Wink)
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.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
=FF=im2good4u



Joined: 05 Feb 2003
Posts: 3924
Location: The Netherlands, HOLLAND

PostPosted: Fri Apr 16, 2004 3:57 am    Post subject: Reply with quote

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

also fro admin watch verry carefully witch words you add caz if you add like
Code:
b_cursefilter "ass"
it will also filter class password asassin
_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Ragnar_40k



Joined: 18 Mar 2004
Posts: 394
Location: Berlin, birthplace of the Döner

PostPosted: Fri Apr 16, 2004 5:43 am    Post subject: Reply with quote

=FF=im2weak4u wrote:
no it doesnt do work whit odd spelling to block f u c k you got a prob Laughing

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.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
KingJackaL



Joined: 08 Jan 2004
Posts: 669
Location: ChCh, NZ

PostPosted: Fri Apr 16, 2004 3:18 pm    Post subject: Reply with quote

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

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" Laughing ).

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 Smile.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Ragnar_40k



Joined: 18 Mar 2004
Posts: 394
Location: Berlin, birthplace of the Döner

PostPosted: Fri Apr 16, 2004 8:58 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
KingJackaL



Joined: 08 Jan 2004
Posts: 669
Location: ChCh, NZ

PostPosted: Fri Apr 16, 2004 9:11 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    banimod / etpro / ettv forums Forum Index -> ET Pro Documentation All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group