From f87320457e149505adc8961752b7351e4839bc40 Mon Sep 17 00:00:00 2001
From: ree <>
Date: Sun, 3 Jul 2011 00:43:46 +0000
Subject: [PATCH] No need to set the terminal before launching an external

---
 exec/logon.js | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/exec/logon.js b/exec/logon.js
index 62068a5879..a091834df3 100644
--- a/exec/logon.js
+++ b/exec/logon.js
@@ -9,18 +9,11 @@
 load("sbbsdefs.js");
 load("text.js");
 load("asc2htmlterm.js");
+var options = load("modopts.js", "logon");
 
 // Check if we're being asked to auto-run an external (web interface external programs section uses this)
-var options = load("modopts.js", "logon");
 if ((options.rlogin_auto_xtrn) && (bbs.sys_status & SS_RLOGIN) && (console.terminal.indexOf("xtrn=") === 0)) {
     var external_code = console.terminal.substring(5);
-	if (console.autoterm & USER_HTML) {
-		console.terminal = "HTML";
-	} else if (console.autoterm & USER_RIP) {
-		console.terminal = "RIP";
-	} else {
-		console.terminal = "ANSI";
-	}
     if (!bbs.exec_xtrn(external_code)) {
         alert(log(LOG_ERR,"!ERROR Unable to launch external: '" + external_code + "'"));
     }
-- 
GitLab