• src/sbbs3/js_system.c

    From rswindell@VERT to CVS commit on Monday, March 23, 2020 20:50:06
    src/sbbs3 js_system.c 1.176 1.177
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv3865

    Modified Files:
    js_system.c
    Log Message:
    Handle getstats() failure with an error exception in the system.stats
    "getter".
    Don't call getstats() when querying properties that aren't actually
    stats (e.g. total_users) - performance optimization.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sunday, March 29, 2020 00:01:59
    src/sbbs3 js_system.c 1.177 1.178
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv16606

    Modified Files:
    js_system.c
    Log Message:
    Add system.get_node() method to read a single node record in one shot:
    use this in place of system.node_list[] if you're going to be using a lot of the properties and passing them around to methods which are going to each possibly dereference the values, as *each* deference results in a read of the node record in the node.dab. On my system, a simple node list (e.g. /L
    command) would result in between 60 and 100 reads of the node.dab (for a 13 node system), which was nuts.

    The system.get_node() method currently leaves the node record unlocked and there is currently no equivalent put_node() method, so you still need to use the system.node_list[] for modification of node records. But, I now see there are race conditions with the current methods of read-modify-writes of the node_list[] properties. We should be locking a node.dab record, reading it, modifying it, writing it, and then unlocking it - as is done in the C/C++
    code. So... that's a todo item.

    Also created system.stats.node_gets to track the number of node.dab reads
    from a single instance of the system object. May remove this any time.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tuesday, March 31, 2020 10:32:34
    src/sbbs3 js_system.c 1.178 1.179
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv11801

    Modified Files:
    js_system.c
    Log Message:
    Add 2 new system properties:
    - min_password_length (currently hard-coded to 4)
    - max_password_length (currently hard-coded to 40)

    Remove 2 unused system properties (nobody uses PostLink/UTI drivers any more): - psname
    - psnum



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Sunday, September 13, 2020 17:20:08
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/c98ed907ce8a8b0644024167
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Add system.notify() method for notifying user/operator of an important event.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Thursday, September 05, 2024 19:53:20
    https://gitlab.synchro.net/main/sbbs/-/commit/6f44d469a50b7e27559385a0
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Create system.tz_offset property; minutes east (+) or west (-) of UTC

    From todo list on Vertrauen, not in GitLab (shrug)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Friday, November 01, 2024 17:16:04
    https://gitlab.synchro.net/main/sbbs/-/commit/f2f595828bfea550a482761d
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Update docs for datestr() method

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sunday, January 12, 2025 19:01:43
    https://gitlab.synchro.net/main/sbbs/-/commit/1c1dbf2f4c81de575534d8b9
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Fix system.datestr(0) returning garbage

    Actually use the return value of datestr()

    Fixes issue reported by Deuce, regression introduced in commit 490e86fa38c

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sunday, January 12, 2025 19:19:32
    https://gitlab.synchro.net/main/sbbs/-/commit/d24295e96fb9f8475255e778
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Add missing paren

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Friday, January 17, 2025 00:57:26
    https://gitlab.synchro.net/main/sbbs/-/commit/ad49884c35c12df2ba44f6cf
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    4 new system properties related to date formatting

    - date_format
    - date_separator
    - date_verbal
    - birthdate_format

    See JSDOCs for details

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Friday, January 17, 2025 01:19:51
    https://gitlab.synchro.net/main/sbbs/-/commit/4aca71193b32b346abb79448
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Add system.birthdate_template string property

    Suitable for passing to console.gettemplate() when prompting for a birth date.

    I'm using like this in my logon.js to correct corrupted newuser birth dates:
    while(user.age < 10) {
    console.putmsg(bbs.text(bbs.text.EnterYourBirthday));
    user.birthdate = console.gettemplate(system.birthdate_template);
    }

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sunday, January 19, 2025 20:34:36
    https://gitlab.synchro.net/main/sbbs/-/commit/9b8d3c0cdc9da6cff49dc97b
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Fix typo in exception message about getnodedat() failure

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sunday, January 19, 2025 21:20:50
    https://gitlab.synchro.net/main/sbbs/-/commit/43ccc3f02588aa21afcc6132
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Fix system.matchuserdata() bug caught by tests/system/rtypes.js on rpi4

    Argument count wasn't checked before checking/parsing each optional
    argument.

    Also noticed/ that the 'match_del' parameter added in commit
    e61eb77b91fe didn't advance the argument index, fixed that issue.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sunday, January 19, 2025 21:39:55
    https://gitlab.synchro.net/main/sbbs/-/commit/3bbeb76401eefbb2fe5601da
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    More argument validation fixups for system.matchuserdata()

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Monday, January 20, 2025 20:21:07
    https://gitlab.synchro.net/main/sbbs/-/commit/1b6da55209026fcca35e805c
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    system zonestr(), timestr(), and datestr() methods don't require an argumnet

    So don't check for null/undefined argv[0] if not passed one

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sunday, March 23, 2025 23:46:19
    https://gitlab.synchro.net/main/sbbs/-/commit/1e440ffc355ef21bcff2f15e
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Fix alignment of system property descriptions in JSDOCS

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Monday, March 31, 2025 15:28:25
    https://gitlab.synchro.net/main/sbbs/-/commit/fa00a7faf87d39d16c3cddc7
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Fix indent (whitespace) only

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Thursday, April 10, 2025 23:39:24
    https://gitlab.synchro.net/main/sbbs/-/commit/7f9b4c1b5ff655f67b274afd
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Add new methods: system.check_realname() and system.check_password()

    These are wrappers around the userdat API functions, suitable for servers
    to do prospective new user string validation.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Friday, April 11, 2025 18:13:56
    https://gitlab.synchro.net/main/sbbs/-/commit/22e2f74de90c845e42486be0
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    system.check_password() does *not* check password.can file now

    We already other means to do that, allowing more visibility to caller *why*
    a password may be rejected.

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