Skip to content
Snippets Groups Projects
Commit 9c3dac59 authored by rswindell's avatar rswindell
Browse files

Include instructions for modifying command-shells to use this module

(manual install step).
Don't use the LastFewCallersFmt string from the text.dat, it requires a
numeric node number and we want to support non-numeric (e.g. "W" for "Web")
"nodes" here. This string, like the others, can be over-ridden via [logonlist]
in ctrl/modopts.ini.
parent dd2b44e9
No related branches found
No related tags found
No related merge requests found
// $Id$
// Logon List module (replaces old hard-coded logon.lst)
// Install with 'jsexec logonlist install'
// ... also, for all command shells (exec/*.src files), replace:
// userlist_logons
// with:
// exec_bin logonlist
//
// ... and then run 'jsexec update'
"use strict";
......@@ -50,7 +57,6 @@ if(argv.indexOf('-m') >= 0) { // maintenance (daily)
exit();
}
require("text.js", 'LastFewCallersFmt');
var days_ago = 0;
var day = options.today || "Today";
if(argv.indexOf('-y') >= 0)
......@@ -66,7 +72,9 @@ function print(hdr, num, days_ago)
for(var i in list) {
var record = list[i];
var date = new Date(record.time * 1000);
console.print(format(bbs.text(LastFewCallersFmt)
console.print(format(options.last_few_callers_fmt ||
"\r\n\x01n\x01h\x01m%-2s \x01n\x01m%-6u \x01w\x01h%-25.25s \x01m%-25.25s" +
"\x01n\x01m%02u:%02u \x01h%-8.8s \x01n\x01m%3d"
,record.node
,record.total
,record.user.alias
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment