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 ...@@ -63,7 +63,7 @@ if ((options.rlogin_auto_xtrn) && (bbs.sys_status & SS_RLOGIN) && (console.termi
//bbs.node_settings|=NM_NOPAUSESPIN //bbs.node_settings|=NM_NOPAUSESPIN
if(user.security.restrictions&UFLAG_G) { 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"); printf("\x01y\x01hFor our records, please enter your full name: \x01w");
const name = console.getstr(LEN_NAME,K_UPRLWR); const name = console.getstr(LEN_NAME,K_UPRLWR);
if(!name || !name.length) if(!name || !name.length)
...@@ -73,7 +73,7 @@ if(user.security.restrictions&UFLAG_G) { ...@@ -73,7 +73,7 @@ if(user.security.restrictions&UFLAG_G) {
break; break;
} }
while(bbs.online) { while(options.guest_email !== false && bbs.online) {
printf("\x01y\x01hPlease enter your e-mail address: \x01w"); printf("\x01y\x01hPlease enter your e-mail address: \x01w");
const email = console.getstr(LEN_NETMAIL); const email = console.getstr(LEN_NETMAIL);
if(!email || !email.length) if(!email || !email.length)
...@@ -88,7 +88,7 @@ if(user.security.restrictions&UFLAG_G) { ...@@ -88,7 +88,7 @@ if(user.security.restrictions&UFLAG_G) {
break; break;
} }
while(bbs.online) { while(options.guest_location !== false && bbs.online) {
printf("\x01y\x01hPlease enter your location (City, State): \x01w"); printf("\x01y\x01hPlease enter your location (City, State): \x01w");
const location=console.getstr(LEN_LOCATION,K_UPRLWR); const location=console.getstr(LEN_LOCATION,K_UPRLWR);
if(!location || !location.length) if(!location || !location.length)
...@@ -102,6 +102,7 @@ if(user.security.restrictions&UFLAG_G) { ...@@ -102,6 +102,7 @@ if(user.security.restrictions&UFLAG_G) {
break; break;
} }
if(options.guest_referral !== false) {
if(bbs.online) if(bbs.online)
bbs.log_str("\r\n"); bbs.log_str("\r\n");
while(bbs.online) { while(bbs.online) {
...@@ -113,6 +114,7 @@ if(user.security.restrictions&UFLAG_G) { ...@@ -113,6 +114,7 @@ if(user.security.restrictions&UFLAG_G) {
break; break;
} }
} }
}
// Force split-screen chat on ANSI users // Force split-screen chat on ANSI users
if(console.term_supports(USER_ANSI)) if(console.term_supports(USER_ANSI))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment