diff --git a/exec/logon.js b/exec/logon.js
index 8af08c76ce14ddac2890f0492ef81049a1bd9556..74cbccef04da3427b6fdcaa3d3ae082b7b782b26 100644
--- a/exec/logon.js
+++ b/exec/logon.js
@@ -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)
 if ((options.rlogin_auto_xtrn) && (bbs.sys_status & SS_RLOGIN) && (console.terminal.indexOf("xtrn=") === 0)) {
     var external_code = console.terminal.substring(5);
+	bbs.node_action = NODE_XTRN;
     if (!bbs.exec_xtrn(external_code)) {
         alert(log(LOG_ERR,"!ERROR Unable to launch external: '" + external_code + "'"));
     }