• exec/load/userprops.js

    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)