• exec/load/modopts.js

    From rswindell@VERT to CVS commit on Friday, January 11, 2019 09:26:00
    exec/load modopts.js 1.3 1.4
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv17560

    Modified Files:
    Log Message:
    New modopts.js usage supported:
    You may now request the value of a single modopts.ini key value (optionally specifying a default option value), via:
    optval = load({}, 'modopts.js', 'modname', 'optname');
    optval = load({}, 'modopts.js', 'modname', 'optname', default_optval);

    This usage will return just a single option value rather than an object containing properties reflecting all the options in the [modname] section.
    The pre-existing usage is still supported (and preferred in most cases).

    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Saturday, November 14, 2020 01:07:37
    Modified Files:
    Log Message:
    Support blank strings in modopts.ini

    Use the new "blanks" option with File.iniGetAllObjects().
    This means that keys specified in the modopts.ini with no value
    will now be represented as blank strings ("") instead of undefined values,
    in JS modules.

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