• src/sbbs3/js_global.c

    From Deuc¿@VERT to Git commit to main/sbbs/master on Thursday, March 25, 2021 22:56:46
    https://gitlab.synchro.net/main/sbbs/-/commit/cba62a81a5b159b0589012a4
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Properly handle CSI m in html_encode()

    Used by gcc in warnings.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Monday, April 26, 2021 20:59:36
    https://gitlab.synchro.net/main/sbbs/-/commit/c67c16bb3b401d214b837f17
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Add support for conditional new-line Ctrl-A code (/) in html_encode()

    ---
    þ 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 Thursday, March 02, 2023 01:11:32
    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 Monday, March 13, 2023 18:31:32
    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 Monday, March 13, 2023 19:41:29
    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 Tuesday, May 23, 2023 18:47:17
    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 Friday, July 07, 2023 18:39:53
    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 Wednesday, November 22, 2023 15:30:20
    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 Thursday, August 08, 2024 21:12:19
    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 Thursday, October 03, 2024 14:20:31
    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