• src/sbbs3/js_global.c

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thu Mar 2 01:11:32 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/322471e4d3364c7a9979c0e9
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    netaddr_type() now returns NET_NONE when passed null or undefined

    ... instead of undefined, to match what the documentation already stated.
    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell (in GitKraken)@VERT to Git commit to main/sbbs/master on Mon Mar 13 18:31:32 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/8229b90607aa8e76e11ff2db
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Add new global JS function: rmfiles() (remove files)

    number rmfiles(directory, spec=*, keep=0)

    Removes files and sub-directories, recursively. Use with caution!
    ---
    � 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 Mon Mar 13 19:41:29 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/8fbd052ef6f5d608011651c2
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Fix GCC warning regarding incompatible pointer type
    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows)@VERT to Git commit to main/sbbs/master on Tue May 23 18:47:17 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/1ea093ded702fc1c800b54fb
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Add new global method: strip_ctrl_a() - remove Ctrl-A sequences from string

    Unlike strip_ctrl(), does not remove any other control characters from string. ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows)@VERT to Git commit to main/sbbs/master on Fri Jul 7 18:39:53 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/947f1a785d06f1ce6ebce9e4
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Update JSDOCS for resolve_ip and resolve_host: returns null on failure
    ---
    � 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 Wed Nov 22 15:30:20 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/9544742b6578711d4fdb15b9
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Elaborate in JSDOC string for html_decode()

    Add comment/question about the use of JS_SetReservedSlot(), for Deuce
    ---
    � 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 Sun Jan 21 15:02:04 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/bcf5220dc1dbd5b504ac68a0
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Clarify JSDOC kibibytes versus kilobytes
    ---
    � 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 Thu Feb 15 21:37:00 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/2aa805d5e8f34dbc0caeadcc
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Log the problem codepoint when reporting error in utf8_encode()
    ---
    � 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 Mon Feb 26 22:41:59 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/e7738fa44ef19b502e9e0cf4
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Fix commit 78dc9470 - wasn't complete

    For some reason, I committed test code that commented-out the actual call
    to js_IsTerminated() which avoided the unnecessary error log message. I guess
    I was testing to confirm the change actually worked. <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 Thu Aug 8 21:12:19 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/d5516d0fdfa0683f399a977b
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Global JS exit() function now sets 'exit_code' to 0 by default

    Calling exit() causes JS_ExecuteScript() to return false (same return value
    as if there's a syntax error) - so if we always set exit_code in exit()
    (even when not passed a parameter) and then use that exit code if the property is defined, then we get the -1 return value from js_execfile() if the script
    is terminated prematurely without using exit().

    This fixes the issue introduced in the previous commit where scripts that
    call exit() - without any parameters, were causing errors to be logged about scripts (e.g. timed events) returning -1.
    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Thu Oct 3 14:20:31 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/0f00cbea87ded29aa84e6847
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Fix multi-array version of socket_select() when using poll()

    Previously, when multiple lists were passed, the "write" parameter
    (which can't be changed) was applied to all sockets. This means
    they would always all be poll()ed for read, then checked for the
    appropriate flag (read/write/priority)... which effectively meant
    that only the first (read) array would work.
    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net