• src/sbbs3/js_system.c

    From Rob Swindell to Git commit to main/sbbs/master on Saturday, January 23, 2021 17:45:56
    https://gitlab.synchro.net/main/sbbs/-/commit/993466007bac54d784f214dc
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Performance enhancement for system.findstr()

    The first argument can now optionally be an array of strings (e.g. as read from File.readAll()), so that multiple searches of the same file (e.g. twitlist.cfg, while importing messages) does not require multiple *reads* of the same file.
  • From Rob Swindell to Git commit to main/sbbs/master on Sunday, April 04, 2021 13:38:22
    https://gitlab.synchro.net/main/sbbs/-/commit/8b898fde24ccaf96ffc073c9
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Fix dead code issues reported by Coverity-scan
  • From Rob Swindell to Git commit to main/sbbs/master on Sunday, April 04, 2021 15:13:57
    https://gitlab.synchro.net/main/sbbs/-/commit/0ef24e4d184e85ad1f251df9
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    client.addr is now an array not pointer

    CID 319143
  • From Deuc╨╡ to Git commit to main/sbbs/master on Monday, April 19, 2021 19:50:36
    https://gitlab.synchro.net/main/sbbs/-/commit/237ace328d017058047ed148
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Populate system.uptime in JSDoor

    This variable tracks the time that jsdoor was started.
  • From Rob Swindell to Git commit to main/sbbs/master on Sunday, August 08, 2021 23:03:19
    https://gitlab.synchro.net/main/sbbs/-/commit/51e0834286ed6e7157d25efe
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Improve the systme.findstr() JSDOCS description text
  • From Rob Swindell to Git commit to main/sbbs/master on Tuesday, January 04, 2022 18:41:48
    https://gitlab.synchro.net/main/sbbs/-/commit/ffcacc9711c0c481110eaef6
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Use SAFECOPY() - CID 345193
  • From Rob Swindell to Git commit to main/sbbs/master on Wednesday, January 19, 2022 20:32:53
    https://gitlab.synchro.net/main/sbbs/-/commit/3b6d2af90c483d85be453f5c
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Eliminate a couple new 'unused variable' warnings.
  • From Rob Swindell to Git commit to main/sbbs/master on Sunday, March 20, 2022 15:05:46
    https://gitlab.synchro.net/main/sbbs/-/commit/cf5b2141cc37a211cf241dbd
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Use JS_ValueToECMAUint32 for full 32-bit time_t values

    Resolves issue with filelist.js trying to pass 4294967295 (-1) to system.datestr() resulting in:
    !JavaScript /sbbs/exec/filelist.js line 13: Error: can't convert t to an integer
  • From Rob Swindell to Git commit to main/sbbs/master on Sunday, March 20, 2022 16:24:39
    https://gitlab.synchro.net/main/sbbs/-/commit/cd199b7451ce3a3b06ebec7e
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    typedefs to suppress warnings about using JS_ValueToECMAUint32 w/int32_t
  • From Rob Swindell to Git commit to main/sbbs/master on Friday, December 30, 2022 03:00:15
    https://gitlab.synchro.net/main/sbbs/-/commit/65f112d40538be61195a712c
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Add JS system.find_login_id() method
  • From Rob Swindell to Git commit to main/sbbs/master on Friday, December 30, 2022 03:06:11
    https://gitlab.synchro.net/main/sbbs/-/commit/8b9a3d576d213ada641542e5
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Resolve unused variable warning introduced in previous commit

    Some trailing whitespace clean-up too.
  • From Rob Swindell (on Windows) to Git commit to main/sbbs/master on Thursday, February 09, 2023 11:50:47
    https://gitlab.synchro.net/main/sbbs/-/commit/8635b5105a097d06bfd67444
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Allow system.matchuserdata() to search deleted user records

    Insert an optional boolean argument to enable a search through deleted and inactive user records (in addition to active user records). This is part of
    the solution to the problem described in issue #513 where the UEDIT sysop command did not go to a specified user (by alias) automatically, presumably because the user record was marked as deleted.
  • From Rob Swindell (on Debian Linux) to Git commit to main/sbbs/master on Thursday, March 16, 2023 15:06:15
    https://gitlab.synchro.net/main/sbbs/-/commit/f3bc58ff48886010b834c040
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Rename system.last* to system.last_*, leaving old names as aliases

    ... to make property names more consistent (e.g. with bbs.last_node).
    The old names (without the underscores) are still usable but won't appear
    in JSDOCS (i.e. jsobjs.html).
  • From Rob Swindell (on Windows) to Git commit to main/sbbs/master on Sunday, April 23, 2023 18:59:30
    https://gitlab.synchro.net/main/sbbs/-/commit/e504e20cb6fb6152f4a12b21
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Add a little more clarity to check_filename() JSDOCS string
  • From Rob Swindell (on ChromeOS) to Git commit to main/sbbs/master on Saturday, May 20, 2023 15:07:19
    https://gitlab.synchro.net/main/sbbs/-/commit/c382e714936d42dba895e806
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Add system.guru (default guru name) property
  • From Rob Swindell (on Windows) to Git commit to main/sbbs/master on Saturday, May 27, 2023 16:39:57
    https://gitlab.synchro.net/main/sbbs/-/commit/e5bd0b631f77a5b1eb979a1c
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    New property: system.mqtt_enabled

    JSDOC fix-ups.
  • From Rob Swindell (on Debian Linux) to Git commit to main/sbbs/master on Wednesday, March 06, 2024 22:06:50
    https://gitlab.synchro.net/main/sbbs/-/commit/2cdafd3585f894c192f2c934
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Add system.git_date proprety (string)
  • From Rob Swindell (on Windows 11) to Git commit to main/sbbs/master on Monday, April 08, 2024 16:32:54
    https://gitlab.synchro.net/main/sbbs/-/commit/8108e0cd9e8eb85a7e77fca1
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Address MSVC warning and CID 492209 with typecast of time_t to uint32_t

    yes, this is a Y2K38 (or Y2106) issue, but we should have that worked out
    when upgrading to the next libmozjs.

    Need something like NUMBER_TO_JSVAL() and equivalent LAZY_NUMBER macro that
    can deal with >32-bit ints correctly (or just always convert to double?).
  • From Rob Swindell (on Windows 11) 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)
  • From Rob Swindell (on Windows 11) 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
  • From Rob Swindell (on Debian Linux)@rob@synchro.net 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
  • From Rob Swindell (on Debian Linux)@rob@synchro.net 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
  • From Rob Swindell (on Debian Linux)@rob@synchro.net 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
  • From Rob Swindell (on Windows 11)@rob@synchro.net 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);
    }
  • From Rob Swindell (on Debian Linux)@rob@synchro.net 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
  • From Rob Swindell (on Debian Linux)@rob@synchro.net 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.
  • From Rob Swindell (on Debian Linux)@rob@synchro.net 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()
  • From Rob Swindell (on Windows 11)@rob@synchro.net 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
  • From Rob Swindell (on Debian Linux)@rob@synchro.net 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
  • From Rob Swindell (on Windows 11)@rob@synchro.net 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
  • From Rob Swindell (on Windows 11)@rob@synchro.net 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.
  • From Rob Swindell (on Windows 11)@rob@synchro.net 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.