checking register for reg'd users
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

checking register for reg'd users

Started by ruler, 10 January, 2005, 23:32:30

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ruler

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

The Direct Connect Global Banlist get protected.

Herodes

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 ...

ruler

#2
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

The Direct Connect Global Banlist get protected.

ruler

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

The Direct Connect Global Banlist get protected.

SMF spam blocked by CleanTalk