Subj : Re: Synchronet API Documentation? To : Mortifis From : Digital Man Date : Sat Jul 13 2019 04:23 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 for > > > > Ja> 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 Synchronet/BBS Terminology Definition #58: R0DENT = Derogatory reference to a young BBS user of the 1990's Norco, CA WX: 88.2øF, 44.0% humidity, 16 mph NE wind, 0.00 inches rain/24hrs .