Skip to content
Snippets Groups Projects
Commit 2b6aa7d1 authored by rswindell's avatar rswindell
Browse files

Make the logon list display optional:

If show_logon_list is set to 'false' in the [logon] section of modopts.ini,
don't show the logon (last few callers) list during logon.
parent e1f92220
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,8 @@ if(options.show_avatar === undefined) ...@@ -22,6 +22,8 @@ if(options.show_avatar === undefined)
options.show_avatar = true; options.show_avatar = true;
if(options.draw_avatar_right === undefined) if(options.draw_avatar_right === undefined)
options.draw_avatar_right = true; options.draw_avatar_right = true;
if(options.show_logon_list === undefined)
options.show_logon_list = true;
if(user.settings & USER_ICE_COLOR) { if(user.settings & USER_ICE_COLOR) {
var cterm = load({}, "cterm_lib.js"); var cterm = load({}, "cterm_lib.js");
...@@ -159,7 +161,8 @@ if(user.security.level==99 /* Sysop logging on */ ...@@ -159,7 +161,8 @@ if(user.security.level==99 /* Sysop logging on */
// Last few callers // Last few callers
console.aborted=false; console.aborted=false;
console.clear(LIGHTGRAY); console.clear(LIGHTGRAY);
bbs.exec("?logonlist -l"); if(options.show_logon_list === true)
bbs.exec("?logonlist -l");
if(bbs.node_status != NODE_QUIET && ((system.settings&SYS_SYSSTAT) || !user.is_sysop)) if(bbs.node_status != NODE_QUIET && ((system.settings&SYS_SYSSTAT) || !user.is_sysop))
bbs.mods.logonlist_lib.add(); bbs.mods.logonlist_lib.add();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment