• exec/load/userprops.js

    From rswindell@1:103/705 to CVS commit on Sun Jun 10 01:37:00 2018
    exec/load userprops.js NONE 1.1
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv31704

    Added Files:
    userprops.js
    Log Message:
    New load/library module to make read/writing to user "properties"
    (stored in data/user/*.ini) easy.


    --- SBBSecho 3.05-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Wed Aug 1 15:34:07 2018
    exec/load userprops.js 1.1 1.2
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv3605

    Modified Files:
    userprops.js
    Log Message:
    Allow a default value to be passed to the get() method, fixes problem
    with email_sec.js:
    line 65: TypeError: addr_list.indexOf is not a function


    --- SBBSecho 3.05-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Fri Aug 17 08:50:27 2018
    exec/load userprops.js 1.2 1.3
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv22524

    Modified Files:
    userprops.js
    Log Message:
    get() will now return the 'deflt' arg value (e.g. undefined) rather than
    false if the .ini file can't be opened (e.g. doesn't exist).
    set() will now return the result of File.iniSetValue() rather than the
    result of File.close().


    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Mon Aug 27 23:09:29 2018
    exec/load userprops.js 1.3 1.4
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv23111

    Modified Files:
    userprops.js
    Log Message:
    set() method can now be used to an object (section) in the user's property (.ini) file in a single call.


    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Wed Oct 3 23:39:18 2018
    exec/load userprops.js 1.4 1.5
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv25509

    Modified Files:
    userprops.js
    Log Message:
    Use a more readable .ini file style: indented keys, spaces around the '='


    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Tue Mar 24 12:45:36 2020
    exec/load userprops.js 1.5 1.6
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv31602

    Modified Files:
    userprops.js
    Log Message:
    Guest (G-restricted) accounts don't get persistent properties:
    - always return the default value from the get() method
    - always return true from the set() method (don't write anything)
    Thanks to the anonymous YouTube BBS reviewer for highlighting this problem (i.e. Minesweeper used the preferences of the last Guest user to run it)


    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Thu Apr 2 00:30:26 2020
    exec/load userprops.js 1.6 1.7
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv14635

    Modified Files:
    userprops.js
    Log Message:
    If only 2 arguments are passed to userprops.set(), assume the caller won't to set the entire section/object all in one go. This is more intuitive than the (still supported) userprops.set(section, null, object) syntax.

    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)