This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

request: clear ban list

Old posts that have not been replied to for several years.
Locked
E
Eternal Bliss
Voice
Posts: 20
Joined: Wed Jun 18, 2003 12:01 pm

request: clear ban list

Post by Eternal Bliss »

Hello.
I have a little request, I need a script that will clear the ban list in multiple channels after X time(24 hours)....
Thank you in advance!.
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

I've made a script which does almost this, dl it and modify it to your needs
Elen sila lúmenn' omentielvo
E
Eternal Bliss
Voice
Posts: 20
Joined: Wed Jun 18, 2003 12:01 pm

Post by Eternal Bliss »

Link?
User avatar
kazoo
Halfop
Posts: 48
Joined: Wed Jun 18, 2003 7:26 pm
Location: Nashville, TN
Contact:

Post by kazoo »

haha :lol:
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

Post by ReaLz »

this one will clear the banlist in all channels every 1 hour

Code: Select all

bind time - "00 * * * *" time_proc

proc time_proc {} {
foreach chan [channels] {
putserv "MODE $chan +b-b *!*@* *!*@*"
putlog "I just cleared all my channels' banlist"
}
}
«A fantastic spaghetti is a spaghetti that does not exist»
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

putserv "MODE $chan +b-b *!*@* *!*@*"
What the heck is with this? ;)
Once the game is over, the king and the pawn go back in the same box.
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

Post by ReaLz »

when you put a ban which is more <<global>> than others, the server removes the others and keeps only that. so if you put a ban *!*@* it removes ALL the bans and if you want to have absolutely no ban in the banlist just ban and unban *!*@* at the same time.
like the

Code: Select all

putserv "MODE $chan +b-b *!*@* *!*@*"
:P
«A fantastic spaghetti is a spaghetti that does not exist»
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Better use something like:

Code: Select all

foreach chan [channels] {
resetbans $chan
}
Once the game is over, the king and the pawn go back in the same box.
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

Post by ReaLz »

This is not what Eternal Bliss is looking for..
resetbans <channel>
Description: removes all bans on the channel that aren't in the bot's
ban list and refreshes any bans that should be on the channel but
aren't
while the +b-b *!*@* *!*@* will remove ALL the bans :P
«A fantastic spaghetti is a spaghetti that does not exist»
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

The "clear the ban list" sounds to me like clean the channel bans list, not bot's list. Anyway, if it's the bot's bans list then you should use the "banlist" and "killchanban" and/or "killban" to wipe them out.
Once the game is over, the king and the pawn go back in the same box.
E
Eternal Bliss
Voice
Posts: 20
Joined: Wed Jun 18, 2003 12:01 pm

Post by Eternal Bliss »

ReaLz wrote:this one will clear the banlist in all channels every 1 hour

Code: Select all

bind time - "00 * * * *" time_proc

proc time_proc {} {
foreach chan [channels] {
putserv "MODE $chan +b-b *!*@* *!*@*"
putlog "I just cleared all my channels' banlist"
}
}
Great!
how do i change that to lets say 24 hours?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

minutes hours days months years.. figure out yourself.
Once the game is over, the king and the pawn go back in the same box.
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Change the mask in the bind to "% 03 *" if you want the unbanning to happen at 3 in the "morning"
Locked