This is the new home of the 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.

import channel banlist

Old posts that have not been replied to for several years.
Posts: 122
Joined: Tue Feb 18, 2003 11:24 pm
Location: Hebertville Quebec Canada

import channel banlist

Post by Pitchat »


often when you put your eggdrop on a new channel there is already some bans in the channel banlist that was set before the eggdrop join .

I wonder if it is possible to import that channel banlist and include it in the bot channel banlist .

any comments welcome

thanks for the help you give me in the past the present and hopefully in the future :)
User avatar
Posts: 12
Joined: Sat Dec 11, 2004 4:25 pm

chan banlist

Post by subtlepoint »

i could see how this would be useful, might need to post in Scripting Help
User avatar
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon

Post by Sir_Fz »

This belongs in the "Script requests" forum. This should do what you asked for:

Code: Select all

bind join - * add:bans {

proc add:bans {nick uhost hand chan} {
 if {![isbotnick $nick]} {return 0}
 foreach ban [chanbans $chan] {
  if {![isban [lindex $ban 0] $chan]} {
   newchanban $chan [lindex $ban 0] [lindex $ban 1] "Set by [lindex $ban 1]" [expr {[lindex $ban 2]/60}]