Commit 7b738d46 authored by rswindell's avatar rswindell
Browse files

New @-code: DATEFMT which expands to either MM/DD/YY or DD/MM/YY

Created for use with the EnterYourBirthday text.dat string, so the CHECKMARK
@-code can be used as well. @-codes can't be used in strings with
printf-specifiers (e.g. %s).
parent 0559467c
......@@ -336,6 +336,10 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen)
safe_snprintf(str, maxlen, "%s %s", timestr(time(NULL)), smb_zonestr(sys_timezone(&cfg),zone));
return str;
if(strcmp(sp, "DATEFMT") == 0) {
return cfg.sys_misc&SM_EURODATE ? "DD/MM/YY" : "MM/DD/YY";
if(!strcmp(sp,"TMSG")) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment