Words file format?

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

User avatar
meanvel
Posts: 129
Joined: 19 Jan 2017, 14:06

Words file format?

Postby meanvel » 02 Apr 2017, 22:23

Having trouble figuring out the syntax which to add bad words to the words file...

Is

Code: Select all

(?i:badword)
not correct?

It's not picking up the new words I add...
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Words file format?

Postby Lapo » 03 Apr 2017, 08:12

Hi,
the file format is extremely simple: one regular expression per line.

For more on reg-exp:
http://www.regular-expressions.info/
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
meanvel
Posts: 129
Joined: 19 Jan 2017, 14:06

Re: Words file format?

Postby meanvel » 05 Apr 2017, 09:17

Hmmm... After doing some research on the processing power used by Regex on large amounts of chat data... I have decided not to use the serverside words filter.

Instead, words filtering will be done clientside.
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Words file format?

Postby Lapo » 05 Apr 2017, 09:25

If you can trust the client...
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
meanvel
Posts: 129
Joined: 19 Jan 2017, 14:06

Re: Words file format?

Postby meanvel » 05 Apr 2017, 09:30

Lapo wrote:If you can trust the client...


Don't need to! I am simply letting all swearwords through the system. A filter will be active by default for any incoming chat/names for your own client.

However, users will be able to disable the nanny filtering for their client if they want to... Provided their age is 18+. I'm really skeptical younger users will attempt to hack their client to disable filtering, lol...
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Words file format?

Postby Lapo » 05 Apr 2017, 09:41

:D
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 134 guests