-
exec/load/userprops.js
From
rswindell@VERT to
CVS commit on Sunday, June 10, 2018 01:37:00
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 Wednesday, August 01, 2018 15:34:07
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 Friday, August 17, 2018 08:50:27
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 Monday, August 27, 2018 23:09:29
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 Wednesday, October 03, 2018 23:39:18
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 Tuesday, March 24, 2020 12:45:36
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 Thursday, April 02, 2020 00:30:26
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