Re: Dumb question 2ã By: John to All on Tue Dec 01 2020 07:52 pmãã > Hi Folks:ã >ã > I am starting to learn Jscript.ããI know what you mean, but it's actually JavaScript (or ECMAScript). "JScript" is Microsoft's implementation of EMCAScript and not what Synchronet uses.ãã > Simple thing, how do I print something thatã > has a CTRL A code or @LASTON@ ?ããconsole.putmsg() will expand @-codes. Most other output methods will expand Ctrl-A codes. See
http://wiki.synchro.net/custom:javascript#output for a reference.ãã > s ("tes"); print ("@LASTON@");ããSo that's the @-codes will expand to the *current* user's information. Instead, you wanted to print u.statistics.laston_date. And you probably want to convert that (number) to a human-readable string with something like system.datestr(), system.timestr(), or strftime():
http://synchro.net/docs/jsobjs.htmlãsee exec/fingerservice.js or other exec/*.js files for examples.ããor even convert it to a JavaScript Date object and use all its methods of stringification:ã
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Dateã-- ã digital manããSynchronet/BBS Terminology Definition #58:ãPhreak = Telephone system hack[er]ãNorco, CA WX: 66.5øF, 23.0% humidity, 0 mph SW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã