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

Add "AT" @-code to enable easier output of literal @-codes without expansion

Deuce's suggestion
parent 21d30e10
Branches
Tags
No related merge requests found
...@@ -365,6 +365,9 @@ const char* sbbs_t::atcode(const char* sp, char* str, size_t maxlen, int* pmode, ...@@ -365,6 +365,9 @@ const char* sbbs_t::atcode(const char* sp, char* str, size_t maxlen, int* pmode,
return nulstr; return nulstr;
} }
if (strcmp(sp, "AT") == 0)
return "@";
if (strncmp(sp, "U+", 2) == 0) { // UNICODE if (strncmp(sp, "U+", 2) == 0) { // UNICODE
enum unicode_codepoint codepoint = (enum unicode_codepoint)strtoul(sp + 2, &tp, 16); enum unicode_codepoint codepoint = (enum unicode_codepoint)strtoul(sp + 2, &tp, 16);
if (tp == NULL || *tp == 0) if (tp == NULL || *tp == 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment