bind pub o|f !userlist user_list
proc user_list {nick uhost hand chan text} {
if {[userlist] == ""} {
putserv "NOTICE $nick :No users found in my userlist for $chan "
return 0
}
putserv "NOTICE $nick :Userlist for $chan "
foreach user [userlist] {
putserv "NOTICE $nick :\(( $user \|| +[lindex [split [chattr $user -|- $chan] \|] end] \))"
}
putserv "NOTICE $nick :End of list."
}
putlog "Userlist.tcl By Tosser^^ Loaded"
The error is that when i type !userlist in the channel, it displays people who are not added for that channel, like it displays the global masters in the userlist for a channel, i dont want it to, i only want it to display the users and the users flags for that channel, got anything else like Q/L or global owner/masters can you please help me with htis, Thanks!!
so add a hostmask in the userlist, and i dont know if possible,
(( handle || current irc nickname or offline is they are offline || host || flags ))
Please help with these if you can, i have no idea how to do the nickname thing, and i dont know how to get the host that the user is added with. Thanks!!
Also, this is not a error with the userlist itself, but im on a bnc, and i type !userlist and some other commands on my eggy like !adduser and !chattr and nothing happens, and then i go onto my bot, and type the commands, and it works. Is this because im on a bnc. And yes, the hosts are the same, and both are added. Please help, Thanks!!