Commit f039b2aa authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Clean-up MIME-Decoded plain-text format message

Don't display at all if smb_getplaintext() returns a blank string.
Don't display "(null)" if there's no text sub-type.
parent 4cb97552
......@@ -326,10 +326,10 @@ bool sbbs_t::show_msg(smb_t* smb, smbmsg_t* msg, long p_mode, post_t* post)
p = smb_getplaintext(msg, txt);
if(p == NULL)
p = txt;
else
else if(*p != '\0')
bprintf(text[MIMEDecodedPlainTextFmt]
, msg->text_charset == NULL ? "unspecified (US-ASCII)" : msg->text_charset
, msg->text_subtype);
, msg->text_subtype == NULL ? "plain" : msg->text_subtype);
}
truncsp(p);
SKIP_CRLF(p);
......
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