• JS Object

    From Mortifis@ALLEYCAT to All on Friday, February 21, 2020 15:23:29
    bleh, my memory is failing ... if there a JS Object that I can use in a script to test if the user is logged(or logging in) or is connected via http?

    ie: if(bbs.online) console.writeln(...) else (writeln(...");

    ---
    ■ Synchronet ■ AlleyCat! BBS - http://alleycat.synchro.net:81
  • From Digital Man to Mortifis on Saturday, February 22, 2020 11:57:38
    Re: JS Object
    By: Mortifis to All on Fri Feb 21 2020 03:23 pm

    bleh, my memory is failing ... if there a JS Object that I can use in a script to test if the user is logged(or logging in) or is connected via http?

    ie: if(bbs.online) console.writeln(...) else (writeln(...");

    Sure. if(bbs.sys_status & SS_USERON) print("User is on");

    Now, the 'bbs' object is only relevant/available in the terminal server (not via http).

    If you want to check method/protocol a user is currently using, client.protocol will contain that string (e.g. "http").

    digital man

    Synchronet "Real Fact" #25:
    The Digital Dynamics company ceased day-to-day opperations in late 1995.
    Norco, CA WX: 56.8°F, 71.0% humidity, 0 mph W wind, 0.00 inches rain/24hrs