• exec/avatars.js

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Tue Dec 3 22:52:42 2024
    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.
    --- 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 Thu Jan 16 00:29:46 2025
    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?)
    --- SBBSecho 3.23-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 Wed Oct 22 22:26:58 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/d6dea621b9d897c3c477442e
    Modified Files:
    exec/avatars.js
    Log Message:
    Cosmetic only: add a space before the success/failure result output
    --- SBBSecho 3.30-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 Wed Feb 25 15:11:54 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/5dda2cc6dfb8ff6893f71fc7
    Modified Files:
    exec/avatars.js
    Log Message:
    install() no longer overwrites existing keys/values in modopts.ini

    [newuser]
    avatar_file
    avatar_offset

    [logon]
    set_avatar

    So if any of these keys pre-exist, they won't be changed
    --- SBBSecho 3.37-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 18 19:19:18 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/f93b92778320c7b6267122de
    Modified Files:
    exec/avatars.js
    Log Message:
    Add an 'export_all' modopts option

    Normally, this module only exports avatars for users that have posted and are able to still post messages.

    For other networked-avatar use cases (e.g. chat), a sysop may want to export all of their users avatars to a message base (e.g. syncdata).
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)