ok i give up searching the forums, i found nothing to solve this problem so i thought i'd resort to posting a new thread.
ok here goes...
i want to be able to enter a simple command like this +check
this would check the nick against the hubs register to see if that nick is registered and if so, it would also tell me the profile of that nick, ect Reg, Op, VIP...
i know that user.iProfile will do this for online users but what about offline users?
is there a way that it could be done similar to the user.iProfile without using a loop script to scan through the Registered users.dat file?
thanks
AddProfile(profile_name, profile_data) ... adds new profile
RemoveProfile(profile_name) ... removes profile
GetProfileIdx(profile_name) ... gets profile index by profile name
GetProfileName(profile_idx) ... gets profile name by profile index
GetProfiles() ... returns profile names in a table
GetUsersByProfile(profile_name) ... returns table of all users with given profile
there r these to help out ...
as you can see GetProfiles is there .. then you do a get users for each profile and you have the list of the ppl regged ...
thanks but i already had this info ,maybe i didnt explain it properly? i didnt want to list all the registered users, i was trying to get a command for my other Ops so that they can check to see is a nick is registered or not.
thanks
ok here is an example of getting the users level in the hub only when the user is online...
function DataArrival(curUser, data)
data=strsub(data,1,strlen(data)-1)
s,e,cmd = strfind(data, "%b<>%s+(%S+)%s*")
if (cmd=="!checkuser") then
_,_,name = strfind( data, "%b<>%s+%S+%s+(%S+)" )
curUser:SendData(name.." is a "..name.iProfile)
end
end
how could this be changed so that we can enter any chosen offline nick to see if its a registered nick?
any help would be much appreciated
thanks