• src/sbbs3/js_system.c

    From Rob Swindell to Git commit to sbbs/master on Sun Sep 13 18:20:08 2020
    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.
  • From Rob Swindell to Git commit to main/sbbs/master on Wed Dec 2 00:09:17 2020
    https://gitlab.synchro.net/main/sbbs/-/commit/e8ffbc856f75449e20409103
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Add system.text() method to return text.dat strings

    Like bbs.text(), except the "system" object is more widely available (e.g. in JSexec, mail server, web server, services) - in case any text.dat strings are useful in those execution environments tool. Requested by mlong.

    Also cleaned up the argument validation in some of these other system methods (throw useful error exceptions rather than just returning false).
  • From Rob Swindell to Git commit to main/sbbs/master on Wed Dec 2 01:15:22 2020
    https://gitlab.synchro.net/main/sbbs/-/commit/d0551f349157c5fd76ffbc76
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Resolve new warning introduced in previous commit.
  • From Rob Swindell to Git commit to main/sbbs/master on Sat Dec 5 18:09:15 2020
    https://gitlab.synchro.net/main/sbbs/-/commit/b11d34b07815786b7ea1006e
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Fix null pointer deref (crash) in new_user() when "client" object is invalid

    When system.new_user() was called but the current "client" object is uninitialized (e.g. has NULL protocol, host or IP address fields because there is no active client, e.g. because is was called from a timed event with active user online) - this code would dereference a NULL pointer and crash the b0rad. Reported by Mortifis.
  • From Rob Swindell to Git commit to main/sbbs/master on Sat Jan 23 17:45:56 2021
    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 Sun Apr 4 13:38:22 2021
    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 Sun Apr 4 15:13:57 2021
    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 Mon Apr 19 19:50:36 2021
    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 Sun Aug 8 23:03:19 2021
    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 Tue Jan 4 18:41:48 2022
    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 Wed Jan 19 20:32:53 2022
    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 Sun Mar 20 15:05:46 2022
    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 Sun Mar 20 16:24:39 2022
    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 Fri Dec 30 03:00:15 2022
    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 Fri Dec 30 03:06:11 2022
    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 Thu Feb 9 11:50:47 2023
    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 Thu Mar 16 15:06:15 2023
    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 Sun Apr 23 18:59:30 2023
    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 Sat May 20 15:07:19 2023
    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 Sat May 27 16:39:57 2023
    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 Wed Mar 6 22:06:50 2024
    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 Mon Apr 8 16:32:54 2024
    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 Thu Sep 5 19:53:20 2024
    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 Fri Nov 1 17:16:04 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/f2f595828bfea550a482761d
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Update docs for datestr() method