From af3102d90c9db726c3903454be7c167ba316c9be Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Thu, 3 Jun 2010 02:12:05 +0000
Subject: [PATCH] Fix problem with hitting ENTER to send mail to all users when
 run from the BBS (e.g. via ";EXEC ?mailall").

---
 exec/examples/mailall.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/exec/examples/mailall.js b/exec/examples/mailall.js
index a464fdd55c..e495255c02 100644
--- a/exec/examples/mailall.js
+++ b/exec/examples/mailall.js
@@ -12,7 +12,7 @@ print("Synchronet MailAll " + REVISION);
 print("Enter ARS matches to send mail to or [ENTER] for everyone");
 
 printf("ARS to match: "); 
-if(this.console)
+if(js.global.console)
 	ars=console.getstr(40,K_UPPER);
 else
 	ars=readln();
@@ -21,7 +21,7 @@ if(ars==undefined)
 
 printf("\r\n\1y\1hSubject: ");
 
-if(this.console)
+if(js.global.console)
 	subj=console.getstr(70,K_LINE);
 else
 	subj=readln();
-- 
GitLab