...
 
Commits (2)
......@@ -271,10 +271,22 @@ function init() {
}
function main() {
const settings = lib.loadSettings(argv[0]);
var settings = lib.loadSettings(argv[0]);
// if you set newOnly to logon, then on login time, it will treat it as newOnly=true and
// only show if new bulletins, but at all other times, treat it as newOnly=false
// (so always display them when called from external program menu context)
if ((settings.newOnly == "logon") && (bbs.node_action != NODE_LOGN)) {
settings.newOnly = false;
}
const list = lib.loadList(settings);
if (!list.length && settings.newOnly) return;
const disp = initDisplay(settings, list);
if (!list.length && settings.newOnly) {
return;
}
const disp = initDisplay(settings, list);
displayList(list, disp.tree);
var ret;
var viewer;
......
......@@ -90,6 +90,12 @@ Contents
is available to be displayed to the user. Bullshit will exit
silently.
If 'newOnly' is set to the string "logon", then only new bulletins
will be shown to the user at logon time (and will silently exit
if none are available), but all bulletins will be shown at other
times (for example, adding bullshit to the external programs menu)
In the 'colors' section:
- 'title' and 'text' are the colors used when viewing an item
......