Skip to content
Snippets Groups Projects

Option for bullshit bulletins to have it display only new bulletins at logon,...

Merged Kayz requested to merge bulllogon into master
2 files
+ 21
3
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 15
3
@@ -271,10 +271,22 @@ function init() {
@@ -271,10 +271,22 @@ function init() {
}
}
function main() {
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);
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);
displayList(list, disp.tree);
var ret;
var ret;
var viewer;
var viewer;
Loading