From caf364ba648c2e26b05803a8a24bbd6ccc25b854 Mon Sep 17 00:00:00 2001
From: Michael Long <mlong@mlong.us>
Date: Thu, 12 Nov 2020 20:58:17 -0800
Subject: [PATCH] change the program var in xtrn.js to prog to be compatible
 with any existing uses of eval_before_exec

---
 exec/postxtrn.js |  4 ++--
 exec/prextrn.js  | 10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/exec/postxtrn.js b/exec/postxtrn.js
index 88c19e0649..ceb19b0044 100644
--- a/exec/postxtrn.js
+++ b/exec/postxtrn.js
@@ -5,11 +5,11 @@
 
 "use strict";
 
-function exec_xtrn_post(program)
+function exec_xtrn_post(prog)
 {
 	var options;
 
-	if ((options = load({}, "modopts.js","xtrn:" + program.code)) == null) {
+	if ((options = load({}, "modopts.js","xtrn:" + prog.code)) == null) {
 		if ((options = load({}, "modopts.js","xtrn_sec")) == null)
 			options = {};	// default values
 	}
diff --git a/exec/prextrn.js b/exec/prextrn.js
index 124db64359..46132f3277 100644
--- a/exec/prextrn.js
+++ b/exec/prextrn.js
@@ -5,11 +5,11 @@
 
 "use strict";
 
-function exec_xtrn_pre(program)
+function exec_xtrn_pre(prog)
 {
 	var options;
 
-	if ((options = load({}, "modopts.js","xtrn:" + program.code)) == null) {
+	if ((options = load({}, "modopts.js","xtrn:" + prog.code)) == null) {
 		if ((options = load({}, "modopts.js","xtrn_sec")) == null)
 			options = {};	// default values
 	}
@@ -31,8 +31,8 @@ function exec_xtrn_pre(program)
 		}
 	}
 
-	if (bbs.menu_exists("xtrn/" + program.code)) {
-		bbs.menu("xtrn/" + program.code);
+	if (bbs.menu_exists("xtrn/" + prog.code)) {
+		bbs.menu("xtrn/" + prog.code);
 		console.pause();
 		console.line_counter=0;
 	}
@@ -48,7 +48,7 @@ function exec_xtrn_pre(program)
 		eval(options.eval_before_exec);
 	}
 
-	load('fonts.js', 'xtrn:' + program.code);
+	load('fonts.js', 'xtrn:' + prog.code);
 }
 
 
-- 
GitLab