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.
-
Pitchat
- Op
- Posts: 122
- Joined: Tue Feb 18, 2003 11:24 pm
- Location: Hebertville Quebec Canada
-
Contact:
Post
by Pitchat »
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
-
subtlepoint
- Voice
- Posts: 12
- Joined: Sat Dec 11, 2004 4:25 pm
Post
by subtlepoint »
i could see how this would be useful, might need to post in Scripting Help
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
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}]
}
}
}