• exec/load/modopts.js

    From rswindell@1:103/705 to CVS commit on Fri Jan 11 01:26:34 2019
    exec/load modopts.js 1.3 1.4
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv17560

    Modified Files:
    modopts.js
    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');
    or:
    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).

    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to sbbs/master on Fri Nov 13 17:07:37 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/58c106283f783df346b12911
    Modified Files:
    exec/load/modopts.js
    Log Message:
    Support blank strings in modopts.iniUse the new "blanks" option with File.iniGetAllObjects().This means that keys specified in the modopts.ini with no valuewill now be represented as blank strings ("") instead of undefined values,in JS modules.
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)