• exec/load/presence_lib.js

    From rswindell@VERT to CVS commit on Wednesday, January 09, 2019 23:26:31
    exec/load presence_lib.js NONE 1.1
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv27151

    Added Files:
    presence_lib.js
    Log Message:
    New library for user presence (e.g. node listings, who's online) reporting. Migrated mostly from exec/nodelist.js, some from fingerservice.js.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, January 10, 2019 02:34:53
    exec/load presence_lib.js 1.1 1.2
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv21971

    Modified Files:
    presence_lib.js
    Log Message:
    Added a web_users() method to return an array of active web users. This is derived from a portion of ecwebv4's ndoelist.js.
    TODO (echicken, help!): fill-out the 'action' property from the web session and double-check on the logontime value (can we get this from the session blob?).


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, January 10, 2019 03:28:04
    exec/load presence_lib.js 1.2 1.3
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv27668

    Modified Files:
    presence_lib.js
    Log Message:
    Added web_user_misc() method.
    Added properties to web_user object: do_not_disturb and msg_waiting


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, January 10, 2019 03:54:44
    exec/load presence_lib.js 1.3 1.4
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv3903

    Modified Files:
    presence_lib.js
    Log Message:
    Check the data/msgs/*.msg file size (> 0) rather than just existence.
    0-byte .msg files are normal and do not mean a msg is waiting for the user.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to CVS commit on Thursday, January 10, 2019 05:55:59
    exec/load presence_lib.js 1.4 1.5
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv20264

    Modified Files:
    presence_lib.js
    Log Message:
    Get web user's action from session file if possible.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, January 10, 2019 10:29:43
    exec/load presence_lib.js 1.5 1.6
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv7842

    Modified Files:
    presence_lib.js
    Log Message:
    Fix usernum parsing bug in web_users():
    numbers beginning w/0 are interpretted as octal by parseInt() by default.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, January 10, 2019 20:49:29
    exec/load presence_lib.js 1.6 1.7
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv31715

    Modified Files:
    presence_lib.js
    Log Message:
    Include web users in nodelist() output unless options.include_web_users = false Provide better example of constructing/using User objects.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, January 10, 2019 22:50:39
    exec/load presence_lib.js 1.7 1.8
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv31604

    Modified Files:
    presence_lib.js
    Log Message:
    Allow the web user action verb to be configurable via options.web_browsing (default: 'browsing' - to match web UI verbiage).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Friday, January 11, 2019 01:29:12
    exec/load presence_lib.js 1.8 1.9
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv17845

    Modified Files:
    presence_lib.js
    Log Message:
    Automatically exclude 0-aged users and blank genders from the output
    of the user_age_and_gender() method.
    Changed options.web_inactivity_timeout to just options.web_inactivity to be more consistent with the existing modopts.ini [web] option naming.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Friday, January 25, 2019 00:34:54
    exec/load presence_lib.js 1.9 1.10
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv29743

    Modified Files:
    presence_lib.js
    Log Message:
    web_user_status() now accepts the 'browsing' word as the second argument and web_users() doesn't expect a 'browsing' argument.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, May 09, 2019 01:00:15
    exec/load presence_lib.js 1.10 1.11
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv16214

    Modified Files:
    presence_lib.js
    Log Message:
    Fix: the NODE_LOGOUT status was not accounted for.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wednesday, September 25, 2019 19:47:09
    exec/load presence_lib.js 1.11 1.12
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv30859

    Modified Files:
    presence_lib.js
    Log Message:
    Quick hack for Alterego to support custom/extended node status text.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sunday, March 29, 2020 01:04:10
    exec/load presence_lib.js 1.12 1.13
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv18183

    Modified Files:
    presence_lib.js
    Log Message:
    I/O optimization of the nodelist() method by using the (new to v3.17c) system.get_node() method of reading a node's data record (from node.dab).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Tuesday, September 22, 2020 22:48:54
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/85c57e8efa63af198a62aaa0
    Modified Files:
    exec/load/presence_lib.js
    Log Message:
    Node's "quiet mode" were not displayed to sysop in "active" node list

    e.g. Hitting Ctrl-U while online, any nodes in "quiet mode" would not
    be shown to the user even though that user was a sysop. This is not
    how sbbs_t::whos_online() from getnode.cpp behaves. Now changed to
    behave the same as whos_online().

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Sunday, September 27, 2020 18:12:52
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/801ebd0c4687e75d74ab154b
    Modified Files:
    exec/load/presence_lib.js
    Log Message:
    Resolve TypeError: session is undefined

    If you can't open the *.web file, don't attempt to add that session data
    to the returned users array.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Saturday, April 09, 2022 14:37:27
    https://gitlab.synchro.net/main/sbbs/-/commit/82b3374fb06d25637e723c33
    Modified Files:
    exec/load/presence_lib.js
    Log Message:
    Fix long-standing issue with external program name display

    Especially for Guest (G-Exempt) accounts which support multiple
    concurrent logons - the 'curxtrn' value stored in the user's record
    may not match the external program that was actually last executed
    on the node in question, so use the .aux property value (from
    node.dab) as is done in the C++ code (e.g. printnodedat()). This insures
    that the node_status() output here matches the C/C++ code output
    (e.g. when logging on the terminal server).

    Still support the 'code-based' external program name look-up since
    that usage is relied upon by other modules, but when a number is
    passed, use the number to find the right external progarm name
    (and we need to subtract one, since aux is a 1-based number).

    I've looked at this problem a couple of times before and not sure why
    I didn't see the solution. <shrug>

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