Subj : Re: Synchronet API Documentation?
To : Digital Man
From : Mortifis
Date : 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 for an
> > > Ja> ad bot. I think it might be possible to do it in 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 = ... ?
When life gets tough, drop a gear and disappear!
---
� Synchronet � AlleyCat! BBS -
http://alleycat.synchro.net:81