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

Add SYSAVAILYN @-code, same as SYSAVAIL but expands to Yes or No instead.

- for Nelgin
parent ca424956
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #820 passed
...@@ -459,6 +459,9 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, long* pmode, bool ...@@ -459,6 +459,9 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, long* pmode, bool
if(strcmp(sp, "SYSAVAIL") == 0) if(strcmp(sp, "SYSAVAIL") == 0)
return text[sysop_available(&cfg) ? LiSysopAvailable : LiSysopNotAvailable]; return text[sysop_available(&cfg) ? LiSysopAvailable : LiSysopNotAvailable];
if(strcmp(sp, "SYSAVAILYN") == 0)
return text[sysop_available(&cfg) ? Yes : No];
if(!strcmp(sp,"LOCATION")) if(!strcmp(sp,"LOCATION"))
return(cfg.sys_location); return(cfg.sys_location);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment