Subj : Re: Synchronet API Documentation? To : Mortifis From : Digital Man Date : Sat Jul 13 2019 02:00 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 documentation? I > > Ja> have an idea for a project in Synchronet for an ad bot. I think it > > Ja> 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; digital man Synchronet "Real Fact" #26: The Synchronet Web Server was written predominantly by Stephen Hurd (Deuce). Norco, CA WX: 89.7øF, 45.0% humidity, 10 mph ENE wind, 0.00 inches rain/24hrs .