2
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: Duplicate Name Control  (Read 13886 times)

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Duplicate Name Control
« Reply #15 on: March 05, 2013, 04:18:46 PM »
The following config was used

Code: xml [Select]
<configuration plugin="censor">
<settings name="settings">
        <!-- max_level: Users with a greater level will not be checked for bad words/names. -->
<set name="max_level">40</set>
        <!-- ignore_length: Only words having a length exceeding ignore_length will be checked -->
<set name="ignore_length">3</set>
</settings>
    <!-- penalty types can be :
        kick, warning, tempban, ban
    -->
<badwords>
</badwords>
<badnames>
<penalty type="kick" reasonkeyword="badname"/>
<badname name="UnknownSoldier">
<regexp>Unknown Soldier</regexp>
</badname>
</badnames>
</configuration>


on this site:
http://b3-censor-test.cucurb.net/

and will kick anyone with the words Unknown Soldier. That means it will kick 3 Unknown Soldier or Unknown Soldier 3. Feel free to test.
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Spinnzz

  • Jr. Member
  • **
  • Posts: 25
Re: Duplicate Name Control
« Reply #16 on: March 05, 2013, 06:41:50 PM »
Tested it on that link, copy/paste the code you provided. It is only checking for badname Unknown Soldier but not doing anything. Not warning or kicking. Wierd.

Did some modifications and now it kicks aswell :D Thanks MordyT!
« Last Edit: March 05, 2013, 06:51:33 PM by Spinnzz »

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Duplicate Name Control
« Reply #17 on: March 05, 2013, 07:18:38 PM »
Tested it on that link, copy/paste the code you provided. It is only checking for badname Unknown Soldier but not doing anything. Not warning or kicking. Wierd.

Did some modifications and now it kicks aswell :D Thanks MordyT!

That's weird, it was working there before.

What changes did you make?
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Spinnzz

  • Jr. Member
  • **
  • Posts: 25
Re: Duplicate Name Control
« Reply #18 on: March 05, 2013, 07:42:29 PM »
Code: [Select]
<configuration plugin="censor">
<settings name="settings">
        <!-- max_level: Users with a greater level will not be checked for bad words/names. -->
<set name="max_level">40</set>
        <!-- ignore_length: Only words having a length exceeding ignore_length will be checked -->
<set name="ignore_length">3</set>
</settings>
    <!-- penalty types can be :
        kick, warning, tempban, ban
    -->
<badnames>
<penalty type="warning" reasonkeyword="badname"/>
<badname name="Unknown Soldier">
<regexp>Unknown Soldier</regexp>
</badname>
</badnames>
</configuration>

This is mine now, and its working :)

 


Rate this page +1 at Google Search