Skip to content
Snippets Groups Projects
Commit 6f55df51 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 fe2b2425
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -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