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

Set the node action to "XTRN" before running an auto-xtrn-upon-rlogin.

prextrn.js keys off of the current node action to detect if the user is
currently in the logon process. Defeat that check in this case (there is no
logon process for auto-xtrn's).
parent d995e889
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -42,6 +42,7 @@ if(options.email_validation == true) { ...@@ -42,6 +42,7 @@ if(options.email_validation == true) {
// Check if we're being asked to auto-run an external (web interface external programs section uses this) // Check if we're being asked to auto-run an external (web interface external programs section uses this)
if ((options.rlogin_auto_xtrn) && (bbs.sys_status & SS_RLOGIN) && (console.terminal.indexOf("xtrn=") === 0)) { if ((options.rlogin_auto_xtrn) && (bbs.sys_status & SS_RLOGIN) && (console.terminal.indexOf("xtrn=") === 0)) {
var external_code = console.terminal.substring(5); var external_code = console.terminal.substring(5);
bbs.node_action = NODE_XTRN;
if (!bbs.exec_xtrn(external_code)) { if (!bbs.exec_xtrn(external_code)) {
alert(log(LOG_ERR,"!ERROR Unable to launch external: '" + external_code + "'")); alert(log(LOG_ERR,"!ERROR Unable to launch external: '" + external_code + "'"));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment