I have a bot and I want it to search the whole users file for ppl with the same XTRA value (for a special thing like admin for example). Anyone knows howto program that?
proc do_scan {nick uhost hand vars} {
set value [lindex $vars 0]
if {$value == ""} {
puthelp "PRIVMSG $nick : OI stupid, what you want me to scan for?"
return 0
}
foreach n [userlist] {
if {[getuser $n XTRA] == "$value"} {
puthelp "PRIVMSG $nick : Scan has $n with XTRA of $value"
}
}