From d0ba468991c2b060e4e7e3bd79cb0f3a3c425117 Mon Sep 17 00:00:00 2001 From: "Rob Swindell (in GitKraken)" <rob@synchro.net> Date: Sun, 12 Mar 2023 18:23:56 -0700 Subject: [PATCH] Add TRUNCOFF @-code to turn off line truncation (if already turned on) --- src/sbbs3/putmsg.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sbbs3/putmsg.cpp b/src/sbbs3/putmsg.cpp index 6b9df7cdd5..ced9c674ba 100644 --- a/src/sbbs3/putmsg.cpp +++ b/src/sbbs3/putmsg.cpp @@ -433,6 +433,11 @@ char sbbs_t::putmsgfrag(const char* buf, int& mode, int org_cols, JSObject* obj) mode |= P_TRUNCATE; continue; } + if(memcmp(str+l, "@TRUNCOFF@", 10) == 0) { + l += 10; + mode &= ~P_TRUNCATE; + continue; + } if(memcmp(str+l, "@QON@", 5) == 0) { // Allow the file display to be aborted (PCBoard) l += 5; mode &= ~P_NOABORT; -- GitLab