Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit 9c2f3e3f authored by rswindell's avatar rswindell

Strip "ZHEX" ('B') from ZDLE/ZHEX combinations which trigger auto-ZMODEM

transfers. These should *not* be included in message text.
parent d24a672e
......@@ -37,6 +37,7 @@
#include "sbbs.h"
#include "wordwrap.h"
#include "utf8.h"
#include "zmodem.h"
/* Outputs a NULL terminated string with @-code parsing, */
......@@ -104,6 +105,12 @@ char sbbs_t::putmsg(const char *buf, long mode, long org_cols)
case FF:
case CTRL_A:
case ZHEX:
if(l && str[l - 1] == ZDLE) {
// fallthrough
default: // printing char
if((mode&P_TRUNCATE) && column >= (cols - 1)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment