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

Don't complain about lack of comma in new user's location

... unless a comma is actually required.
parent efa466fc
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3334 passed
...@@ -264,11 +264,13 @@ BOOL sbbs_t::newuser() ...@@ -264,11 +264,13 @@ BOOL sbbs_t::newuser()
if(!online) return(FALSE); if(!online) return(FALSE);
while((cfg.uq&UQ_LOCATION) && online && text[EnterYourCityState][0]) { while((cfg.uq&UQ_LOCATION) && online && text[EnterYourCityState][0]) {
bputs(text[EnterYourCityState]); bputs(text[EnterYourCityState]);
if(getstr(useron.location,LEN_LOCATION,kmode) if(getstr(useron.location,LEN_LOCATION,kmode) < 1)
&& ((cfg.uq&UQ_NOCOMMAS) || strchr(useron.location,','))) continue;
if((cfg.uq&UQ_NOCOMMAS) && strchr(useron.location,',') == NULL) {
bputs(text[CommaInLocationRequired]);
useron.location[0]=0;
} else
break; break;
bputs(text[CommaInLocationRequired]);
useron.location[0]=0;
} }
if(cfg.uq&UQ_ADDRESS) if(cfg.uq&UQ_ADDRESS)
while(online && text[EnterYourZipCode][0]) { while(online && text[EnterYourZipCode][0]) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment