View previous topic :: View next topic |
Author |
Message |
Pitchat Op
Joined: 18 Feb 2003 Posts: 122 Location: Hebertville Quebec Canada
|
Posted: Tue Oct 04, 2005 1:40 pm Post subject: import channel banlist |
|
|
Hi,
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  |
|
Back to top |
|
 |
subtlepoint Voice

Joined: 11 Dec 2004 Posts: 12
|
Posted: Tue Oct 04, 2005 7:50 pm Post subject: chan banlist |
|
|
i could see how this would be useful, might need to post in Scripting Help |
|
Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Wed Oct 05, 2005 4:59 am Post subject: |
|
|
This belongs in the "Script requests" forum. This should do what you asked for:
Code: | 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}]
}
}
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
Back to top |
|
 |
|