Re: Modifying logon list format
By: NeoArata to All on Wed Jul 17 2024 10:15 am
I wanted to also display the month and day in my BBS logon list. So far I have directly modified the file logonlist.js and it seems to work. Is there a way to do this without having to directly change this source file? I notice there is a argument options.last_few_callers_fmt inside the script, but I'm not sure how to use it. Thanks.
I just committed a change so you can do this by setting [logonlist] time_fmt to the date/time string of your choice in your ctrl/modopts.ini file. To include month and day, you'd use %m and %d in this key value. If you wanted to retain the hours and minute, you'd need to include %H and %M. See
https://cplusplus.com/reference/ctime/strftime/ for reference.
Now, with the add data, your logon lists lines are likely to exceed 79 columns, so you'd need to truncate or exclude other values from each line to keep from wrapping on most terminals.
--
digital man (rob)
Breaking Bad quote #52:
I need to get involved like I need a second hole in my ass - Hank Shrader Norco, CA WX: 85.4øF, 52.0% humidity, 1 mph WSW wind, 0.00 inches rain/24hrs --- SBBSecho 3.20-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)