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
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3334 passed
......@@ -264,11 +264,13 @@ BOOL sbbs_t::newuser()
if(!online) return(FALSE);
while((cfg.uq&UQ_LOCATION) && online && text[EnterYourCityState][0]) {
bputs(text[EnterYourCityState]);
if(getstr(useron.location,LEN_LOCATION,kmode)
&& ((cfg.uq&UQ_NOCOMMAS) || strchr(useron.location,',')))
if(getstr(useron.location,LEN_LOCATION,kmode) < 1)
continue;
if((cfg.uq&UQ_NOCOMMAS) && strchr(useron.location,',') == NULL) {
bputs(text[CommaInLocationRequired]);
useron.location[0]=0;
} else
break;
bputs(text[CommaInLocationRequired]);
useron.location[0]=0;
}
if(cfg.uq&UQ_ADDRESS)
while(online && text[EnterYourZipCode][0]) {
......
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