Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commits (1)
  • Rob Swindell's avatar
    Guest user prompts can be disabled via modopts.ini [logon] settings · 491228fe
    Rob Swindell authored
    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.
    491228fe
...@@ -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,15 +102,17 @@ if(user.security.restrictions&UFLAG_G) { ...@@ -102,15 +102,17 @@ if(user.security.restrictions&UFLAG_G) {
break; break;
} }
if(bbs.online) if(options.guest_referral !== false) {
bbs.log_str("\r\n"); if(bbs.online)
while(bbs.online) { bbs.log_str("\r\n");
printf("\x01y\x01hWhere did you hear about this BBS?\r\n: \x01w"); while(bbs.online) {
const ref=console.getstr(70); printf("\x01y\x01hWhere did you hear about this BBS?\r\n: \x01w");
if(!ref || !ref.length) const ref=console.getstr(70);
continue; if(!ref || !ref.length)
bbs.log_str(ref + "\r\n"); continue;
break; bbs.log_str(ref + "\r\n");
break;
}
} }
} }
......