• exec/avatars.js

    From rswindell@VERT to CVS commit on Mon Sep 10 20:28:00 2018
    exec avatars.js 1.34 1.35
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv29805

    Modified Files:
    avatars.js
    Log Message:
    Fix puke on empty data/user/####.ini file:
    !JavaScript avatars.js line 340: TypeError: avatar is null
    Added a couple of comments and some helpful log/console output.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sun Jan 20 21:22:00 2019
    exec avatars.js 1.35 1.36
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv21808

    Modified Files:
    avatars.js
    Log Message:
    Fixed typo: security.restrictions, not security_restrictions!



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Mon Jun 3 18:03:18 2019
    exec avatars.js 1.36 1.37
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv14186

    Modified Files:
    avatars.js
    Log Message:
    Add a "sub_default" command-line option so a default avatar can be easily imported, e.g.
    jsexec avatars sub_default=/sbbs/text/avatars/silhouettes.bin



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sun Aug 18 16:01:59 2019
    exec avatars.js 1.38 1.39
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv13770

    Modified Files:
    avatars.js
    Log Message:
    Fix issue where Share Avatar Collections imported from FTN were saved as files in data/fido with the node number encoded twice (once in hex and once in decimal):
    006702c1.705.VERT.misc.bin

    This is a harmless bug, but an unintentional one. It would also result in unexpected filenames in text/avatars:
    705.VERT.misc.bin

    So... this commit should remove the "705." from these filenames.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Thu Dec 31 09:13:47 2020
    https://gitlab.synchro.net/main/sbbs/-/commit/a964807661be47b0143d474d
    Modified Files:
    exec/avatars.js
    Log Message:
    Don't publish realname when same as alias

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Mon Jan 11 14:32:40 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/5f088ad2a5d0267cdf0ad3b3
    Modified Files:
    exec/avatars.js
    Log Message:
    By default, export MD5 digest of real name associated with an avatar

    This enables Avatar displays on real-name-only networks without leaking
    real names into the SYNCDATA sub.

    If the -realnames option is used, the unobscured full real names are
    exported (as before).

    If the (new) -aliasonly option is used, even the MD5 digest of users'
    real names is left out.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wed Feb 23 08:01:08 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/9166b520ca68317216e2b5b9
    Modified Files:
    exec/avatars.js
    Log Message:
    Increase white-space tolerance when importing avatars from msgbase

    TARDIS (Quarkware BBS, the Ruby BBS), uses just \n for QWK message
    line deliniation, but we were expected \r\n terminated lines here.
    Also, apparently there was trailing white-space on the "json-end"
    line, so handle that case too.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wed Feb 23 08:27:08 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/ad7a74744db3a9fd126f96aa
    Modified Files:
    exec/avatars.js
    Log Message:
    Remove accidental debug print() statement left from previous commit

    ---
    þ 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 Tue Dec 3 22:52:43 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.

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