Subj : Re: Synchronet API Documentation?
To : Digital Man
From : Mortifis
Date : Sat Jul 13 2019 10:33 pm
> Re: Re: Synchronet API Documentation?
> By: Mortifis to Digital Man on Sat Jul 13 2019 06:49 pm
> > > Re: Re: Synchronet API Documentation?
> > > By: Mortifis to echicken on Sat Jul 13 2019 01:16 pm
> > > > > Re: Synchronet API Documentation?
> > > > > By: Jagossel to All on Sun May 05 2019 19:21:53
> > > > > Ja> Would anyone have a link to some sort of API or SDK
> > > > > Ja> documentation? I have an idea for a project in Synchronet
> > > > > Ja> for an ad bot. I think it might be possible to do it in
> > > > > Ja> JavaScript.
> > > > >
http://synchro.net/docs/jsobjs.html
> > > > user.security.restrictions (and exemptions) are integers, so how
> > > > would one change say restrictions A CD F N P to just CD? I am
> > > > not sure of the integer representations of exemptions/restrictions.
> > > There are lot of examples in exec/*.js, but most of them are setting
> > > or clearing a single flag at a time. To set (or clear) multiple flags
> > > at a time, use the | bit-wise operator:
> > > user.security.restrictions = UFLAG_C | UFLAG_D;
> > Is there an easy way to clear all flags for a user account with no
> > restrictions? or a var NEW_UFLAG_SET = ... ?
> To set an account to have no restrictions,
> user.security.restrictions = 0;
> I'm not sure what you're implying by the NEW_UFLAG_SET var.
> digital man
I am modifying emailval.js ... user.security.restrictions = 0; is good to
clear all restrictions, thank you. Is there an easy way to declare a flag set
variable (I called it NEW_UFLAG_SET as an example) similar to NEW_UFLAG_SET =
"UFLAG_C | UFLAG_D | UFLAG_E ... etc"; ?
When life gets tough, drop a gear and disappear!
---
� Synchronet � AlleyCat! BBS -
http://alleycat.synchro.net:81