• exec/avatars.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Tuesday, December 03, 2024 22:52:43
    https://gitlab.synchro.net/main/sbbs/-/commit/b29b8cfc0e7c9b039c0e52a9
    Modified Files:
    exec/avatars.js
    Log Message:
    .ini files need to be opened for read/write access when writing/updating

    This happened to work before commit d49134e6f7 since iniReadFile()
    didn't return false upon any read error, so File.iniSetAllObjects() didn't realize that the read of (any) existing file contents had failed (because the file was open write-only).

    This explains why the *.avatars.ini files were pretty much blank as of late
    and no networked message posters were having their avatars displayed.
    Reported by Codefenix (thank you).

    Add a print/log line to tell us how many avatars were parsed, just for extra traceability of this script and any potential failure cause.

    ---
    þ 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, January 16, 2025 00:29:47
    https://gitlab.synchro.net/main/sbbs/-/commit/cbae5ab7f7852703817d770f
    Modified Files:
    exec/avatars.js
    Log Message:
    Work-around avatars.js line 271: TypeError: hdr is null

    with a null hdr check before use (corrupt msg base?)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net