bind PUB o banlist pub:banlist
proc pub:banlist { nick host hand chan text } {
set target [getuser $hand XTRA TARGET]
set type ""
set bans ""
if { [llength $text] < 1 } {
set bans [banlist $chan]
set type $chan
} else {
if { [matchattr $hand A] && [string tolower [lindex $text 0]] == "global" } {
set bans [banlist]
set type "global"
}
if { [string tolower [lindex $text 0]] == "all" } {
for { set x 0 } { $x < [llength [channels]] } { incr x } {
set bans "$bans [banlist [lindex [channels] $x]]"
}
set bans "$bans [banlist]"
set type "all"
}
}
if { [llength $bans] < 1 } {
puthelp "$target $nick :There are no bans to list for $type."
} else {
puthelp "$target $nick :Listing bans for $type"
for { set x 0 } { $x < [llength $bans] } { incr x } {
set list [lindex $bans $x]
set banned [lindex $list 0]
set comment [lindex $list 1]
set expire [lindex $list 2]
set creator [lindex $list 5]
if { $expire == 0 } { set expire "never"
} else { set expire [ctime $expire] }
puthelp "$target $nick :$x - Mask: $banned, Reason: $comment, Expires: $expire, Creator: $creator"
}
}
}
from the look of the error message, you have a proc from another script called 'banlist' (maybe as you originally were writing this script, you didn't name the proc 'pub:banlist', but rather 'banlist'? In which case, you will have to .restart , not .rehash).
lol ugly. well, the proc and bind were originally called 'banlist'
but a few errors ago i changed it to pub:banlist
there is no other script or anything with a proc/bind
called banlist, i'll try killing it and see what happnes.
thanks for the help.