Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 9c3dac59 authored by rswindell's avatar rswindell

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
// $Id$ // $Id$
// Logon List module (replaces old hard-coded logon.lst) // Logon List module (replaces old hard-coded logon.lst)
// Install with 'jsexec logonlist install' // 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"; "use strict";
...@@ -50,7 +57,6 @@ if(argv.indexOf('-m') >= 0) { // maintenance (daily) ...@@ -50,7 +57,6 @@ if(argv.indexOf('-m') >= 0) { // maintenance (daily)
exit(); exit();
} }
require("text.js", 'LastFewCallersFmt');
var days_ago = 0; var days_ago = 0;
var day = options.today || "Today"; var day = options.today || "Today";
if(argv.indexOf('-y') >= 0) if(argv.indexOf('-y') >= 0)
...@@ -66,7 +72,9 @@ function print(hdr, num, days_ago) ...@@ -66,7 +72,9 @@ function print(hdr, num, days_ago)
for(var i in list) { for(var i in list) {
var record = list[i]; var record = list[i];
var date = new Date(record.time * 1000); 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.node
,record.total ,record.total
,record.user.alias ,record.user.alias
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment