Subj : Re: User Object USER_DELETED
To   : Digital Man
From : Mortifis
Date : Thu Aug 08 2019 09:36 am

>   Re: User Object USER_DELETED
>   By: Mortifis to All on Tue Jul 23 2019 12:52 pm

>  > I am unsure how to restore a user with the user.settings.USER_DELETED or
>  > restore a USER_INACTIVE  any help would be appreciated

> USER_DELETED and USER_INACTIVE are bit flags. An integer can hold many bit
> flags (typically, 32). In the case of user.settings, each bit as a
> pre-defined purpose and those bits have been assigned symbolic names (in
> userdefs.js).

> To set (add) a bit-flag, you bit-wise "OR" it into the value, like so:

>         user.settings |= USER_DELETED;

> To unset (remove) a bit-flag, you bit-wise "AND" it with the opposite
> (bit-wise not) value, like so:

>         user.settings &= ~USER_DELETED;

> Hope that helps,

>                                             digital man

Very helpful ... sorry for taking so long to reply, I was having QWK issues


My doctor said I have the body of a 25 year old ... and the mind of a 10 :-/

---
� Synchronet � AlleyCat! BBS - http://alleycat.synchro.net:81