Skip to content
Snippets Groups Projects
Commit 3cd0394c authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

More Rlogin xtrn-menu options (in modopts.ini [logon] section):

rlogin_xtrn_logon set to false to skip the normal logon screens for Rlogin.
rlogin_xtrn_logoff set to false (default) to immediately hangup, true to
prompt the user if they truly wish to logoff, and "full" to prompt and if
affirmed, go through the full logoff procedure (dislpay files and events,
etc.).
parent d8a5f808
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@ if(user.security.exemptions&UFLAG_H)
/******************************
* Replaces the 2.1 Logon stuff
******************************/
if (!(bbs.sys_status&SS_RLOGIN) || options.rlogin_xtrn_logon !== false) {
if(options.fast_logon !== true || !(bbs.sys_status&SS_FASTLOGON)
|| !user.compare_ars(options.fast_logon_requirements)) {
......@@ -206,6 +206,7 @@ if(options.show_avatar && console.term_supports(USER_ANSI)) {
bbs.mods.avatar_lib.show(user.number);
console.attributes = 7; // Clear the background attribute
}
}
// Set rlogin_xtrn_menu=true in [logon] section of ctrl/modopts.ini
// if you want your RLogin server to act as a door game server only
......@@ -214,7 +215,17 @@ if(options.rlogin_xtrn_menu
var xtrn_sec;
if (console.terminal.indexOf("xtrn_sec=") === 0)
xtrn_sec = console.terminal.substring(9);
while(bbs.online && !js.terminated) {
bbs.xtrn_sec(xtrn_sec);
if (!options.rlogin_xtrn_logoff)
break;
if (options.rlogin_xtrn_logoff == "full")
bbs.logoff(/* prompt: */true);
else {
if (console.yesno(bbs.text("LogOffQ")))
break;
}
}
bbs.hangup();
} else if(!(user.security.restrictions&UFLAG_G)
&& console.term_supports(USER_ANSI)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment