From 197f7351542db704e4bfaf941abfbd010de5faad Mon Sep 17 00:00:00 2001 From: "Rob Swindell (on Debian Linux)" <rob@synchro.net> Date: Mon, 22 Apr 2024 21:58:49 -0700 Subject: [PATCH] Using mnemonic with @-codes for DoYouMeanThisUserQ text.dat string --- src/sbbs3/data.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sbbs3/data.cpp b/src/sbbs3/data.cpp index 10f5af7790..dab8a325c3 100644 --- a/src/sbbs3/data.cpp +++ b/src/sbbs3/data.cpp @@ -71,8 +71,11 @@ uint sbbs_t::finduser(const char* name, bool silent_failure) return((l/(LEN_ALIAS+2))+1); } if(pass==2 && strcasestr(buf, name)) { - bprintf(text[DoYouMeanThisUserQ], buf + char tmp[256]; + char str[256]; + snprintf(tmp, sizeof tmp, expand_atcodes(text[DoYouMeanThisUserQ], str, sizeof str), buf ,(uint)(l/(LEN_ALIAS+2))+1); + mnemonics(tmp); c=(char)getkeys(ynq,0); if(sys_status&SS_ABORT) { fclose(stream); -- GitLab