From a2a75563f57906a1322d0d3c77677b0c28e88eaf Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Thu, 13 Nov 2003 22:25:12 +0000
Subject: [PATCH] Use boolean variables (ask_qnet and ask_sysop) to control
 whether the QWKnet or SyncSysop new user questions are asked, rather than
 checking the BBS name each time. This will simplify enabling these questions
 for sysops (just change "false" to "true").

---
 exec/newuser.js | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/exec/newuser.js b/exec/newuser.js
index 344694dc18..7594543df6 100644
--- a/exec/newuser.js
+++ b/exec/newuser.js
@@ -12,14 +12,21 @@ load("sbbsdefs.js");
 
 console.clear();
 
+ask_qnet=false;
+ask_sysop=false;
+qnet=false;
+
+if(system.name=="Vertrauen") {
+	ask_qnet=true;
+	ask_sysop=true;
+}
+
 if(!user.address.length && user.number>1) {
 	printf("\1y\1hWhere did you hear about this BBS? ");
 	user.address=console.getstr(30,K_LINE);
 }
 
-qnet=false;
-
-if(system.name=="Vertrauen"
+if(ask_qnet 
 	&& !console.noyes("\r\nIs this account to be used for QWK Networking (DOVE-Net)\1b")
 	&& !console.noyes("\r\n\1bARE YOU \1wPOSITIVE\1n\1h\1b (If you're unsure, press '\1wN\1b')"))
 	qnet=true;
@@ -85,9 +92,8 @@ if(qnet) {
 	user.security.exemptions|=UFLAG_M;
 }
 
-if(system.name=="Vertrauen" &&
-   !console.noyes("\r\n\1bAre you a sysop of a \1wSynchronet\1b BBS (unsure, hit '\1wN\1b')")) 
-{
+if(ask_sysop 
+	&& !console.noyes("\r\n\1bAre you a sysop of a \1wSynchronet\1b BBS (unsure, hit '\1wN\1b')")) {
 	user.flags1|=UFLAG_S;
 	if(!qnet && console.yesno("\r\nDo you wish to access the Synchronet BBS List database"))
 		bbs.exec_xtrn("SBL");
-- 
GitLab