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

Don't add CP437 QWKnet tagline glyph when message is explicitly US-ASCII

e.g. when message was posted via NNTP with:
     Content-Type: text/plain; charset=US-ASCII

Assume the poster wants the message to remain US-ASCII, so let's not pollute
the message with CP437 chars and invalidate the header and cause unnecessary
downstream issues.
parent 873908db
Branches
No related tags found
No related merge requests found
......@@ -507,7 +507,7 @@ int sbbs_t::msgtoqwk(smbmsg_t* msg, FILE *qwk_fp, int mode, smb_t* smb
snprintf(str, sizeof str, "%s---%c", text[QWKEndOfMessage], qwk_newline); /* so add one */
else
SAFECOPY(str, text[QWKEndOfMessage]);
if (cfg.sub[subnum]->misc & SUB_ASCII)
if ((cfg.sub[subnum]->misc & SUB_ASCII) || smb_msg_is_ascii(msg))
ch = '*';
else
ch = CP437_BLACK_SQUARE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment