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

Allow user's < 1 year old (e.g. for QWKnet accounts)

... and up to 200 years old (hey, I'm optimistic!)
parent dd51c02c
No related branches found
No related tags found
No related merge requests found
...@@ -321,7 +321,7 @@ BOOL sbbs_t::newuser() ...@@ -321,7 +321,7 @@ BOOL sbbs_t::newuser()
if(gettmplt(str, "nnnn/nn/nn", K_EDIT) < 10) if(gettmplt(str, "nnnn/nn/nn", K_EDIT) < 10)
continue; continue;
int age = getage(&cfg, str); int age = getage(&cfg, str);
if(age >= 1 && age <= 150) { if(age >= 0 && age <= 200) {
SAFEPRINTF3(useron.birth, "%.4s%.2s%.2s", str, str + 5, str + 8); SAFEPRINTF3(useron.birth, "%.4s%.2s%.2s", str, str + 5, str + 8);
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment