Badwords Issue - Not recognizing word with other words

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
ChaseDoggy
Posts: 8
Joined: 20 Jun 2007, 16:11

Badwords Issue - Not recognizing word with other words

Post by ChaseDoggy »

Hi,

I have just found a new oddity in the badword filter. Please excuse my language as I need to use it to explain the exact situation.

In my bad word filter I have many words but the one that I'm having difficulty with is:

<badWord>fuck</badWord>

When I type in "fuck" into our chat feature, the filter does exactly what is expected of it.

If I type "fuck you", the filter doesn't catch the error.

I'm confused because all other words such as "cunt" or "shit"... work exactly as they are expected to. So if I type in "eat shit" or "you cunt" or something similar, I get booted as expected.

Any ideas?

Smartfox Server Pro - 1.5.5
CentOS 5
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Hi and welcome,
I have just found a new oddity in the badword filter. Please excuse my language as I need to use it to explain the exact situation.
No prob :)
When I type in "fuck" into our chat feature, the filter does exactly what is expected of it.
If I type "fuck you", the filter doesn't catch the error.
It works for me. I added "fuck" to the bad words list and then tried the simple chat. I get "**** you" as expected.

It's not clear to me if you also added "fuck you" to the list. Can you show us your bad-words-filter config? You can omit the long list of bad words, just the general settings and the "fuck" related bad words :P

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
ChaseDoggy
Posts: 8
Joined: 20 Jun 2007, 16:11

Post by ChaseDoggy »

If I'm reading this right, I made a big mistake. But I don't know why it would filter the other words and not the one that I had mentioned earlier.

<BadWordsFilter active="false">
<FilterMode>filter</FilterMode> <!-- REMOVE or FILTER -->
<Warnings>true</Warnings>
<FilterRoomNames>true</FilterRoomNames>
<FilterUserNames>true</FilterUserNames>
<WarningsBeforeKick>3</WarningsBeforeKick>
<WarningMessage><![CDATA[No swearing!)]]></WarningMessage>
<KickMessage><![CDATA[You've been warned! No Swearing! Now you're kicked]]></KickMessage>
<BanMessage><![CDATA[Stop Swearing! You're being banned!]]></BanMessage>
<BanAfter timeSpan="1">3</BanAfter>

<BadWordsList>


Sorry if I wasted your time. I will set:

<BadWordsFilter active="true">

and see if that works.

Ever feel like a complete idiot?
patso
Posts: 380
Joined: 13 Nov 2006, 13:44
Location: Sofia, Bulgaria

Post by patso »

-= OFF TOPIC =-
ChaseDoggy wrote:Ever feel like a complete idiot?
Yep, almost every day :).

Recently I found that there is Tween and TrasitionManager classes in Flash 8 and they are not new in Flex/Flash CS3 :oops:
Post Reply