• src/sbbs3/js_system.c

    From Rob Swindell@1:103/705 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 valuesResolves 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
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 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
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 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
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 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 commitSome trailing whitespace clean-up too.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows)@1:103/705 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 recordsInsert an optional boolean argument to enable a search through deleted andinactive user records (in addition to active user records). This is part ofthe solution to the problem described in issue #513 where the UEDIT sysopcommand did not go to a specified user (by alias) automatically, presumablybecause the user record was marked as deleted.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 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 appearin JSDOCS (i.e. jsobjs.html).
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows)@1:103/705 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
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on ChromeOS)@1:103/705 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
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows)@1:103/705 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_enabledJSDOC fix-ups.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 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)
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 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?).
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 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)
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 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
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sun Jan 12 19:01:43 2025
    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
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sun Jan 12 19:19:32 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/d24295e96fb9f8475255e778
    Modified Files:
    src/sbbs3/js_system.c
    Log Message:
    Add missing paren
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Fri Jan 17 00:57:26 2025
    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
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Fri Jan 17 01:19:51 2025
    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);
    }
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Mon Jan 20 20:21:07 2025
    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
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Thu Apr 10 23:39:24 2025
    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.
    --- SBBSecho 3.24-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Fri Apr 11 18:13:56 2025
    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.
    --- SBBSecho 3.24-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)