-
exec/load/userprops.js
From
rswindell@VERT to
CVS commit on Sat Jun 9 21: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.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Wed Aug 1 11:34:00 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
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Fri Aug 17 04:50:00 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().
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Mon Aug 27 19:09:00 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.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Wed Oct 3 19:39:00 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 '='
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Tue Mar 24 08: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)
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Wed Apr 1 20: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.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net