From 2787474aa6c7ec211815363e01c6b038af8f3cf5 Mon Sep 17 00:00:00 2001 From: "Rob Swindell (on Windows 11)" <rob@synchro.net> Date: Mon, 3 Mar 2025 17:11:02 -0800 Subject: [PATCH] Add "AT" @-code to enable easier output of literal @-codes without expansion Deuce's suggestion --- src/sbbs3/atcodes.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sbbs3/atcodes.cpp b/src/sbbs3/atcodes.cpp index 7acb323526..a12c65efc3 100644 --- a/src/sbbs3/atcodes.cpp +++ b/src/sbbs3/atcodes.cpp @@ -365,6 +365,9 @@ const char* sbbs_t::atcode(const char* sp, char* str, size_t maxlen, int* pmode, return nulstr; } + if (strcmp(sp, "AT") == 0) + return "@"; + if (strncmp(sp, "U+", 2) == 0) { // UNICODE enum unicode_codepoint codepoint = (enum unicode_codepoint)strtoul(sp + 2, &tp, 16); if (tp == NULL || *tp == 0) -- GitLab