I want the bot to go thru the chanlist and see if each user has that info set, and if so, I want the bot to pm a list of those users and their information to the person who triggers the bind.
right now, it's only checking to see if the person who triggered it has the info and only displaying their name in the list if the information exists.
this is what I have:
Code: Select all
bind msg - !list servlist
proc servlist {nick uh hand var} {
set chan "#channel"
foreach user [chanlist $chan] {
if {![info exists [user-get $hand status]]} {
set title [user-get $hand title]
set status [user-get $hand status]
putserv "PRIVMSG $nick :$title $hand $status"
}
return 0
}
}
any help would be appreciated