Confirming user Registered status
 

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

Confirming user Registered status

Started by Shurlock, 14 October, 2004, 23:26:57

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Shurlock

Hi all,

I'm STUCK!  For some reason I'm not able to detect a few status checks on users in order to enable them to change their password.

I need to check the following:

- is the user online?

If so:
- is the user registered
- is the user NOT registered

That's all I need.

Any help to get me out of a serious 'bugged' loop is welcome!

Thanks in advance (as always!)
If it's raining and your roof leaks, fix the roof. DON'T try to stop the rain!!

bastya_elvtars

GetItemByName(nick)

looks if nick online. returns nil if not, else returns a table, so if u use it as l

usr=GetItemByName(nick)
then u can use usr.sIp with it for instance, so returns a table with the well-known user parameters in ptokax

if user.iProfile~=-1

below things will be called if profile index is not -1. as you probably know, -1 means unregistered user.
Everything could have been anything else and it would have just as much meaning.

Shurlock

Thanks for the script Mutor, works perfect.

I still have one small problem though, which will probably not be solved:

Immediately after registering a new user, the profile will not be updated untill the user re-connects.  X(
But, I can live with that.
If it's raining and your roof leaks, fix the roof. DON'T try to stop the rain!!

bastya_elvtars

QuoteOriginally posted by Shurlock
Thanks for the script Mutor, works perfect.

I still have one small problem though, which will probably not be solved:

Immediately after registering a new user, the profile will not be updated untill the user re-connects.  X(
But, I can live with that.

this is a dc++ protocol thing, scripts have nothing 2 do w/ it
Everything could have been anything else and it would have just as much meaning.

Herodes

user:SendData(bot, "please reconnect ( press Ctrl+R ) to enable your new registration")
user:Disconnect()

Herodes

Guibs had used this in his great ChannelBot ,... from my CBExperience this dont work ... :/

SMF spam blocked by CleanTalk