Skip to content
Snippets Groups Projects
Commit 491228fe authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Guest user prompts can be disabled via modopts.ini [logon] settings

guest_name = false will disable name prompt
guest_email = false will disable the email address prompt
guest_location = false will disable the location prompt
guest_referral = false will disable the "where'd you hear about this BBS" prompt

Note, at minimum, I do recommend prompting for the guest's email address so that if they send the sysop feedback (e.g. ask a question), they at least have some hope of receiving a reply.
parent 56bc2096
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -63,7 +63,7 @@ if ((options.rlogin_auto_xtrn) && (bbs.sys_status & SS_RLOGIN) && (console.termi
//bbs.node_settings|=NM_NOPAUSESPIN
if(user.security.restrictions&UFLAG_G) {
while(bbs.online) {
while(options.guest_name !== false && bbs.online) {
printf("\x01y\x01hFor our records, please enter your full name: \x01w");
const name = console.getstr(LEN_NAME,K_UPRLWR);
if(!name || !name.length)
......@@ -73,7 +73,7 @@ if(user.security.restrictions&UFLAG_G) {
break;
}
while(bbs.online) {
while(options.guest_email !== false && bbs.online) {
printf("\x01y\x01hPlease enter your e-mail address: \x01w");
const email = console.getstr(LEN_NETMAIL);
if(!email || !email.length)
......@@ -88,7 +88,7 @@ if(user.security.restrictions&UFLAG_G) {
break;
}
while(bbs.online) {
while(options.guest_location !== false && bbs.online) {
printf("\x01y\x01hPlease enter your location (City, State): \x01w");
const location=console.getstr(LEN_LOCATION,K_UPRLWR);
if(!location || !location.length)
......@@ -102,15 +102,17 @@ if(user.security.restrictions&UFLAG_G) {
break;
}
if(bbs.online)
bbs.log_str("\r\n");
while(bbs.online) {
printf("\x01y\x01hWhere did you hear about this BBS?\r\n: \x01w");
const ref=console.getstr(70);
if(!ref || !ref.length)
continue;
bbs.log_str(ref + "\r\n");
break;
if(options.guest_referral !== false) {
if(bbs.online)
bbs.log_str("\r\n");
while(bbs.online) {
printf("\x01y\x01hWhere did you hear about this BBS?\r\n: \x01w");
const ref=console.getstr(70);
if(!ref || !ref.length)
continue;
bbs.log_str(ref + "\r\n");
break;
}
}
}
......
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