L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 06, 2008, 08:57:10 AM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: Banlist Module - Banlist functionality
Pages: 1 [2]   Go Down
« previous next »
Print
Author Topic: Banlist Module - Banlist functionality  (Read 2552 times)
0 Members and 1 Guest are viewing this topic.
craized
BeBot Contributor
Experienced
*******
Offline Offline

Gender: Male
Posts: 165



WWW
Re: Banlist Module - Banlist functionality
« Reply #15 on: January 23, 2006, 12:10:01 AM »

Sorry about this, I'm hitting another AO dry spell, so I'm not working on this stuff anymore. I did however fix this one already and didn't upload it because I'm getting an error I can't figure out. I don't doubt that you guys will finish/fix/find out nothing is wrong with this no problem. I'll have my web version up, but I'm also going to start posting the code in the topic post since this will probably need tweaking.
Logged

Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]

craized
BeBot Contributor
Experienced
*******
Offline Offline

Gender: Male
Posts: 165



WWW
Re: Banlist Module - Banlist functionality
« Reply #16 on: March 13, 2006, 09:51:31 AM »

I've updated the code for my banlist, but I still need help. For some reason, it's not storing banned names in the database. Also, I've left out the optional ban time because I can't get the regex right. If you find more bugs, please post them. I've also added a history function for the sake of checking if a user has been banned previously.

Edit: Fixed the database issues. Everything works except the time so far
Edit: Fixed the ban time as well. Everything is ready, although I'm sure there are still bugs and improvements to be made
« Last Edit: March 13, 2006, 02:20:42 PM by craized » Logged

Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]

Naturalistic
BeBot Contributor
Experienced
*******
Offline Offline

Posts: 221


Re: Banlist Module - Banlist functionality
« Reply #17 on: March 13, 2006, 01:42:12 PM »

Just an add:

If someone is banned, you can make it so they can't re-join the bot. Inside PrivGroup.php, inside the function tell ():
$result = $this->bot->db->select("SELECT name FROM banlist where name='" . $nameofpersonbanned . "'");

Then after, do a check if (!empty($result)) { send_tell ( "You're banned loser!" ) } else { all the join, invite, stuff }

Hope that helps out someone Smiley
Logged

220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php
craized
BeBot Contributor
Experienced
*******
Offline Offline

Gender: Male
Posts: 165



WWW
Re: Banlist Module - Banlist functionality
« Reply #18 on: March 13, 2006, 02:27:21 PM »

Also, you can use:
Code:
if($this -> commands['tell']['banlist'] -> bancheck($who)) {
"You're banned loser."
}
else {
invite stuff
}

I put the function in the module, it will return true if you're banned, or false if you're not banned. When the bot starts, it keeps the entire banlist in a variable, so saves more DB calls.
Logged

Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]

Naturalistic
BeBot Contributor
Experienced
*******
Offline Offline

Posts: 221


Re: Banlist Module - Banlist functionality
« Reply #19 on: March 13, 2006, 03:17:24 PM »

That works too Smiley
Logged

220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php
craized
BeBot Contributor
Experienced
*******
Offline Offline

Gender: Male
Posts: 165



WWW
Re: Banlist Module - Banlist functionality
« Reply #20 on: March 14, 2006, 04:00:21 AM »

This is the first stable release in my opinion. Fixed a lot of stuff, and it actually works now.

Enjoy Cheesy
Logged

Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]

Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: Banlist Module - Banlist functionality
« Reply #21 on: March 14, 2006, 09:53:51 AM »

*tagging this for merging into SVN later*
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Naturalistic
BeBot Contributor
Experienced
*******
Offline Offline

Posts: 221


Re: Banlist Module - Banlist functionality
« Reply #22 on: March 14, 2006, 01:11:06 PM »

Can't test it out myself :p

Using my own modified ban module >_<
Logged

220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php
Pharexys
Apprentice
***
Offline Offline

Posts: 94


Re: Banlist Module - Banlist functionality
« Reply #23 on: May 13, 2006, 07:12:40 AM »

I tested ur module, and i get some errors.

To [xxx]: !banlist
[xxx]: Usage: !ban <name> [reason] <duration>
To [xxx]: !unban
[xxx]: Usage: !unban <name>
To [xxx]: !ban
[xxx]: Usage: !ban <name> [reason] <duration>
To [xxx]: !banned
[xxx]: Usage: !ban <name> [reason] <duration>

What i mean is.. It doesnt show a banlist when u type !banlist,
Also after i ban someone, it doesnt kick him from chat(dunno if you forgot this or didnt wanted it)
Checked code a bit.. but since im not a coder cant find the problem
also used your updated prvgroup.php
Anything i did wrong or is it bugged?
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 772



WWW
Re: Banlist Module - Banlist functionality
« Reply #24 on: May 02, 2007, 05:07:44 PM »

i have the same prob
ban seem to work but i can get it to list who is banned and just get same replies as you
Logged
Dracutza
Apprentice
***
Offline Offline

Posts: 126


Re: Banlist Module - Banlist functionality
« Reply #25 on: December 19, 2007, 10:55:07 AM »

Is there a way to have an unbanned (ban del, or timer expires) member go back to member as opposed to anonymous?
Logged
Pages: 1 [2]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: Banlist Module - Banlist functionality
« previous next »
 
Jump to:  

Recent
!items database
by cthulhu
[October 05, 2008, 11:36:16 AM]

Supplies needed module
by viper
[October 05, 2008, 11:11:13 AM]

Assist
by Foxy
[October 05, 2008, 05:09:02 AM]

How's 0.5.x coming? Wonde...
by Hyde
[October 04, 2008, 04:59:20 PM]

TWC
by Elesar1
[October 04, 2008, 12:55:59 PM]

Org in AoC
by Alreadythere
[October 04, 2008, 04:50:00 AM]

OnlineOrg
by Slacklin
[October 04, 2008, 03:06:00 AM]

Learning .NET, Mono, C#, ...
by Vhab
[October 04, 2008, 02:39:03 AM]

guild taxes module for ag...
by Elesar1
[October 03, 2008, 09:06:09 AM]

MediaControl
by Elesar1
[October 03, 2008, 08:38:18 AM]
Stats
Members
Total Members: 983
Latest: Titerris
Stats
Total Posts: 10740
Total Topics: 1448
Online Today: 15
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 3
Guests: 35
Total: 38
Sudoka
cthulhu
Karsta

Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.4 seconds with 29 queries. (Pretty URLs adds 0.044s, 4q)
Loading...