• JS Object

    From Mortifis@VERT/ALLEYCAT to All on Fri Feb 21 10:23:00 2020
    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@VERT to Mortifis on Sat Feb 22 06:57:00 2020
    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

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net