thankyou
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: TagProtect Plugin  (Read 23111 times)

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: TagProtect Plugin
« Reply #60 on: June 01, 2011, 09:36:08 PM »
sorry it does not work when there are upper and lowercase letters in the tag

my mistake in the code

normally with this version it should work http://ptitbigorneau.fr/fichiers/tagprotect1.2.4.zip

PtitBigorneau

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: TagProtect Plugin
« Reply #61 on: June 01, 2011, 09:37:30 PM »
Yay... i think that is why it never worked for me.
Time to try again.
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 NinjaNife

  • Full Member
  • ***
  • Posts: 80
  • Currently hosting 40+ b3 Bots!!!
    • TheProgressiveClan
Re: TagProtect Plugin
« Reply #62 on: June 01, 2011, 11:20:23 PM »
sorry it does not work when there are upper and lowercase letters in the tag

my mistake in the code

normally with this version it should work http://ptitbigorneau.fr/fichiers/tagprotect1.2.4.zip



What code did you change?  I am trying to learn how this Python stuff works as I go, so any information on what you did would be great (we actually got it to work by completely modifying the way it checked for tags, but I am interested in knowing how you did it too).

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: TagProtect Plugin
« Reply #63 on: June 02, 2011, 12:11:27 AM »
before
Code: [Select]

                cnamemin = client.name.lower()
                exacttagmaj = self._clanexacttag.upper()
                exacttagmin = self._clanexacttag.lower()
                cexacttagmaj = client.name.count(exacttagmaj)
                cexacttagmin = client.name.count(exacttagmin)

next version
Code: [Select]
                cnamemin = client.name.lower()

                exacttagmin = self._clanexacttag.lower()

                cexacttagmin = cnamemin.count(exacttagmin)
PtitBigorneau

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: TagProtect Plugin
« Reply #64 on: June 02, 2011, 12:30:50 AM »
corrects the problem of tags with uppercase and lowercase

download -> tagprotect v1.2.4
PtitBigorneau

Offline NinjaNife

  • Full Member
  • ***
  • Posts: 80
  • Currently hosting 40+ b3 Bots!!!
    • TheProgressiveClan
Re: TagProtect Plugin
« Reply #65 on: June 02, 2011, 03:14:27 AM »
Just a heads up; the newest version now kicks any name with those letters.  Like in our case, it kicks anyone with the letters "pRo" in their name.  Such as "Professor" gets kicked, as does "program" or anything with "pro" in the name, not just a tag.

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: TagProtect Plugin
« Reply #66 on: June 02, 2011, 03:31:10 AM »
That is by design according to the first post.
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 NinjaNife

  • Full Member
  • ***
  • Posts: 80
  • Currently hosting 40+ b3 Bots!!!
    • TheProgressiveClan
Re: TagProtect Plugin
« Reply #67 on: June 02, 2011, 07:15:06 AM »
That is by design according to the first post.

Ah..  Alright I guess that makes sense...  We will just continue to use our file then (we modified the tagprotect.py and made one that does a search for any combination of characters that could resemble our tag, but it doesn't kick for letters alone).  Thanks for the help guys!

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: TagProtect Plugin
« Reply #68 on: June 02, 2011, 11:47:46 AM »
Do not put in your tagprotect.xml
Code: [Select]
                <set name="clanapprotag">pro</set>
but rather
Code: [Select]
                <set name="clanapprotag">(pro)</set>
for example if you do not want that players with "pro" in their nickname be kicked
PtitBigorneau

Offline NinjaNife

  • Full Member
  • ***
  • Posts: 80
  • Currently hosting 40+ b3 Bots!!!
    • TheProgressiveClan
Re: TagProtect Plugin
« Reply #69 on: July 19, 2011, 04:29:49 PM »
I'm back again lol.  Is there any way to get the player's name and GUID in the tagprotect table in the database?  Right now it only shows the client_id, which makes it very hard to identify each one (if I have to remove one I have to search them in the clients table, find their client_id, and then go to tagprotect and remove).  How can I do this?  Thanks for the help.

Brendan "NinjaNife" West

Offline ryry46d9

  • B3 Contrib/Support
  • Sr. Member
  • *
  • Posts: 337
    • Pb| clan
Re: TagProtect Plugin
« Reply #70 on: July 19, 2011, 08:55:47 PM »
I'm back again lol.  Is there any way to get the player's name and GUID in the tagprotect table in the database?  Right now it only shows the client_id, which makes it very hard to identify each one (if I have to remove one I have to search them in the clients table, find their client_id, and then go to tagprotect and remove).  How can I do this?  Thanks for the help.

Brendan "NinjaNife" West

In this case Echelon is your friend:
http://forum.bigbrotherbot.net/index.php?action=downloads;cat=7
Ver.2 is incomplete but promising 

Offline NinjaNife

  • Full Member
  • ***
  • Posts: 80
  • Currently hosting 40+ b3 Bots!!!
    • TheProgressiveClan
Re: TagProtect Plugin
« Reply #71 on: July 19, 2011, 09:42:57 PM »
In this case Echelon is your friend:
http://forum.bigbrotherbot.net/index.php?action=downloads;cat=7
Ver.2 is incomplete but promising  

So this is basically a tool for viewing (and editing perhaps?) the B3 database online?  Or did I read that wrong?

The tagprotect table doesn't have these variables, but I think they could be easily added into the MySQL script; I just don't know how to code that.  I do not believe that Echelon is necessary for this (it may get the same job done, but not in the same way), although I am looking into it for other reasons.  PtitBigorneau, is it possible to get those variables viewable in the database, even if they don't matter ingame (all I want to do is see them, they don't have to actually do anything with the plugin).
« Last Edit: July 19, 2011, 09:56:23 PM by NinjaNife »

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: TagProtect Plugin
« Reply #72 on: July 20, 2011, 12:40:21 AM »
anything is possible but for just look at filling the information in the database
is it really useful?

chiefly in games there are commands

!listmemberclan or !ltmc for the id, the name and level of all clan members

!lookup for the id using a name of a player

!id for name, guid usind id of a player

after in the case of a clan with many members, it may not be easy to manage all this

integrate to echelon, I think that this is not necessary to modify the table of the database

but in a future release (if I do not forget) I can add the name and guid, a table of the database

Sorry for my English
PtitBigorneau

Offline NinjaNife

  • Full Member
  • ***
  • Posts: 80
  • Currently hosting 40+ b3 Bots!!!
    • TheProgressiveClan
Re: TagProtect Plugin
« Reply #73 on: July 20, 2011, 04:17:03 AM »
anything is possible but for just look at filling the information in the database
is it really useful?
I don't know if anyone else would use it, but when I am removing players from the memberlist I just go in the database and delete their entry.  Once they are no longer in my clan, they usually change their name, so I can't always just guess what their new name is to remove it, so I would just go in the database and see which name didn't have tags or which one I had to remove.  Either way, I have to see the name of the player in the database so that would definitely help for me :)  Thanks for the help.

Brendan "NinjaNife" West

Offline ryry46d9

  • B3 Contrib/Support
  • Sr. Member
  • *
  • Posts: 337
    • Pb| clan
Re: TagProtect Plugin
« Reply #74 on: July 20, 2011, 10:45:58 AM »
Sorry I was half asleep when posting that.

With echelon you can search for a name and It will come back with their:
 
@#
any past aliases
date first seen on the server/last seen
the last 25 messages sent to the server (ver.1 i'm unsure about ver.2)

Then you can use this info and remove the entry a little easier. 

 


Rate this page +1 at Google Search

anything