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.

Make Eggdrop Scan All Users

Old posts that have not been replied to for several years.
Locked
L
LaMersSs

Post by LaMersSs »

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?

Thanks
T
TriPpen^KiSs

Post by TriPpen^KiSs »

command /msg $botnick scanuser <whatvalue>

bind msg - scanuser do_scan

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"
}
}

Kissmine
Locked