You are here: Big Brother Bot ForumAdd-OnsConfigurations (Moderator: MordyT)Censor Question
Pages: [1]   Go Down
  Print  
Author Topic: Censor Question  (Read 810 times) Bookmark and Share
Jr. Member
**
OS: Windows
Type: Gameserver Rental Co.
Gameservers: Homefront
Posts: 22
Offline Offline
« on: June 17, 2011, 02:27:03 AM »

There are some words I would Like to add to the list for our server. I have a question though on the format.

EXAMPLE

<badword name="asshole" lang="en">
         <regexp>[a@][s$]{2}h[o0]le</regexp>

The line that I have italicized means what? There seems to be no repeating format to the characters.
Could i get away with just adding the first line to the censor.xml

Thanks
Logged

Moderator
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2625
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #1 on: June 17, 2011, 04:55:24 AM »

I think... think that it will use those substitute for characters... IE
  <regexp>[a@] saying even if the guy does @sshole instead of with a A, recognize it. or [s$] if he does a$$hole..

Just my thoughts, and if I am correct, they should not be needed
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3483
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #2 on: June 17, 2011, 08:19:11 AM »

the <regexp> tag is for a regular expression. See what they are on wikipedia. If you feel uncomfortable using them, I suggest you use the <word> tag instead which is much easier.

Code:
<word>asshole</word>

Also make sure to read http://wiki.bigbrotherbot.net/usage:censor_plugin

If you want to try out regexp for yourself, I suggest you test your regular expressions with kodos
Logged

Jr. Member
**
OS: Windows
Type: Gameserver Rental Co.
Gameservers: Homefront
Posts: 22
Offline Offline
« Reply #3 on: June 17, 2011, 12:19:50 PM »

Thanks a bunch guy's i'll test this out tonight.
Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal