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

Renamed DAYBYTES to USEDCDT (amount of free credits used today)

DAYBYTES is now an alias for BTODAY, since that more accurately reflects what
PCB and WC used this code for, though WC4 Sysop Guide says it's in "K", we'll
ignore that inconsistency (Wildcat! docs are wrong maybe?).
parent c16dfedf
No related branches found
No related tags found
No related merge requests found
Pipeline #9016 passed
...@@ -1330,7 +1330,8 @@ const char* sbbs_t::atcode(const char* sp, char* str, size_t maxlen, int* pmode, ...@@ -1330,7 +1330,8 @@ const char* sbbs_t::atcode(const char* sp, char* str, size_t maxlen, int* pmode,
return str; return str;
} }
if (strcmp(sp, "BTODAY") == 0) { // Note: @DAYBYTES@ = "Daily download K" in Wildcat 4 Sysop Guide, but "Number of bytes downloaded today" in PCBoard v15.2 Sysop Manual
if (strcmp(sp, "BTODAY") == 0 || strcmp(sp, "DAYBYTES") == 0) {
safe_snprintf(str, maxlen, "%" PRIu64, useron.btoday); safe_snprintf(str, maxlen, "%" PRIu64, useron.btoday);
return str; return str;
} }
...@@ -1505,7 +1506,7 @@ const char* sbbs_t::atcode(const char* sp, char* str, size_t maxlen, int* pmode, ...@@ -1505,7 +1506,7 @@ const char* sbbs_t::atcode(const char* sp, char* str, size_t maxlen, int* pmode,
return str; return str;
} }
if (!strcmp(sp, "DAYBYTES")) { /* amt of free cdts used today */ if (!strcmp(sp, "USEDCDT")) { /* amt of free cdts used today */
safe_snprintf(str, maxlen, "%" PRIu64, cfg.level_freecdtperday[useron.level] - useron.freecdt); safe_snprintf(str, maxlen, "%" PRIu64, cfg.level_freecdtperday[useron.level] - useron.freecdt);
return str; return str;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment