Skip to content
Snippets Groups Projects
Commit a2a75563 authored by rswindell's avatar rswindell
Browse files

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").
parent b01b3968
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment