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

New @-codes SEX and GENDERS

SEX is the user's sex/gender
GENDERS is the list of system-supported genders for new users to choose from.
parent bb0d2496
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -540,6 +540,14 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, long* pmode, bool
if(strcmp(sp, "TMP") == 0)
return useron.tmpext;
if(strcmp(sp, "SEX") == 0) {
safe_snprintf(str, maxlen, "%c", useron.sex);
return str;
}
if(strcmp(sp, "GENDERS") == 0) {
return cfg.new_genders;
}
if(!strcmp(sp,"QWKID"))
return(cfg.sys_id);
......
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