Skip to content
Snippets Groups Projects
Commit 055320ad authored by rswindell's avatar rswindell
Browse files

These modules no longer need manual "install". They are the defaults for the

newly added SCFG->System->Loadable Modules: List Nodes, Who's Online, and
Private Msg.
parent df3de69c
No related branches found
No related tags found
No related merge requests found
// $Id$
// Node Listing / Who's Online display script, replaces the bbs.whos_online() function
// Installable as a Ctrl-U key handler ('jsexec nodelist install') or as an
// 'exec/node list' replacement ('jexec nodelist').
// Node Listing / Who's Online Module
// Installed in SCFG->System->Loadable Modules->List Nodes / Who's Online
// or as an 'exec/node list' replacement ('jexec nodelist').
//
// Command-line / load() arguments supported:
// -active Include active users/nodes only
......@@ -20,18 +20,7 @@
require("sbbsdefs.js", 'K_NONE');
if(argv.indexOf("install") >= 0) {
var cnflib = load({}, "cnflib.js");
var xtrn_cnf = cnflib.read("xtrn.cnf");
if(!xtrn_cnf) {
alert("Failed to read xtrn.cnf");
exit(-1);
}
xtrn_cnf.hotkey.push({ key: ascii(ctrl('U')), cmd: '?nodelist.js -active' });
if(!cnflib.write("xtrn.cnf", undefined, xtrn_cnf)) {
alert("Failed to write xtrn.cnf");
exit(-1);
}
// nothing to do here
exit(0);
}
......
// $Id$
// Private Message (Ctrl-P) Hot Key Handler
// Install this module in SCFG->External Programs->Global Hot Key Events:
// Global Hot Key Ctrl-P
// Command Line ?privatemsg.js
//
// or, by running "jsexec privatemsg.js install"
// Private Message Module
// Installed in SCFG->System->Loadable Modules->Private Msg
if(argc == 1 && argv[0] == "install") {
var cnflib = load({}, "cnflib.js");
var xtrn_cnf = cnflib.read("xtrn.cnf");
if(!xtrn_cnf) {
alert("Failed to read xtrn.cnf");
exit(-1);
}
xtrn_cnf.hotkey.push({ key: ascii(ctrl('P')), cmd: '?privatemsg.js' });
if(!cnflib.write("xtrn.cnf", undefined, xtrn_cnf)) {
alert("Failed to write xtrn.cnf");
exit(-1);
}
// Nothing to do
exit(0);
}
......
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