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.
Old posts that have not been replied to for several years.
Eternal Bliss
Voice
Posts: 20 Joined: Wed Jun 18, 2003 12:01 pm
Post
by Eternal Bliss » Wed Jun 18, 2003 12:04 pm
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!.
Papillon
Owner
Posts: 724 Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no
Post
by Papillon » Wed Jun 18, 2003 2:29 pm
I've made a script which does almost this, dl it and modify it to your needs
Elen sila lúmenn' omentielvo
kazoo
Halfop
Posts: 48 Joined: Wed Jun 18, 2003 7:26 pm
Location: Nashville, TN
Contact:
Post
by kazoo » Wed Jun 18, 2003 8:48 pm
haha
ReaLz
Op
Posts: 121 Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece
Post
by ReaLz » Thu Jun 19, 2003 3:01 am
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»
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Thu Jun 19, 2003 3:09 am
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.
ReaLz
Op
Posts: 121 Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece
Post
by ReaLz » Thu Jun 19, 2003 3:14 am
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 *!*@* *!*@*"
«A fantastic spaghetti is a spaghetti that does not exist»
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Thu Jun 19, 2003 3:21 am
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.
ReaLz
Op
Posts: 121 Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece
Post
by ReaLz » Thu Jun 19, 2003 3:24 am
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
«A fantastic spaghetti is a spaghetti that does not exist»
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Thu Jun 19, 2003 3:33 am
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.
Eternal Bliss
Voice
Posts: 20 Joined: Wed Jun 18, 2003 12:01 pm
Post
by Eternal Bliss » Thu Jun 19, 2003 10:43 am
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?
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Thu Jun 19, 2003 10:46 am
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
Posts: 1452 Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway
Post
by user » Thu Jun 19, 2003 10:46 am
Change the mask in the bind to "% 03 *" if you want the unbanning to happen at 3 in the "morning"