Got a little problem with one script.
I am asking for it to list a value from the user file then puthelp it to a users with everyone that has the value in there account!
Code: Select all
proc asus_pub_acess(admins) {nick uhost hand vasus} {
global botnick asus
if {[validuser $hand] == "0"} {
puthelp "NOTICE $nick :You are not in my user file."
puthelp "NOTICE $nick :Usage: \002/msg $botnick regnick <pass> <email>\002"
return 0
}
if {[getuser $hand XTRA auth] == "0"} {
puthelp "NOTICE $nick :You are not Identifed"
puthelp "NOTICE $nick :Usage: \002/msg $botnick identify <login> <password>\002"
return 0
}
if {[getuser $hand XTRA ADMIN] >= "25"} {
foreach asus_set [userlist] {
set asus_admin [getuser $asus_set XTRA admin]
set asus_auth [getuser $asus_set XTRA auth]
puthelp "NOTICE $nick :$asus(logo) Asustek Services 1.0.1 $asus(logo)"
puthelp "NOTICE $nick :\002\037************************************\002\037"
puthelp "NOTICE $nick :\002\002"
puthelp "NOTICE $nick :Administrator List"
if {$asus_auth == "1"} {
set asus_on_off "\002Online\002"
}
if {$asus_auth == "0"} {
set asus_on_off "Offline"
}
puthelp "NOTICE $nick :$asus_set $asus_admin $asus_on_off"
}
}
}
If anyone can give me a hand with lining it all up... Or have any ideas with a start and i will look it up[3:55pm] -Asustek- [asus] Asustek Services 1.0.1 [asus]
[3:55pm] -Asustek- ************************************
[3:55pm] -Asustek-
[3:55pm] -Asustek- Administrator List
[3:55pm] -Asustek- Kissmine 500 Online
[3:55pm] -Asustek- Hammie 99 Online
[3:55pm] -Asustek- TheDeadMan 100 Online
Thanx for reading it all..
ThePope