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

When writing messages with a 'top' in raw-input-mode, don't add excessive CRLF

If the top already ends in a blank line, no additional CRLF is warranted
(between the 'top' and the raw-input message 'body').
parent ff386400
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -526,8 +526,11 @@ bool sbbs_t::writemsg(const char *fname, const char *top, char *subj, int mode, ...@@ -526,8 +526,11 @@ bool sbbs_t::writemsg(const char *fname, const char *top, char *subj, int mode,
,(ulong)cfg.level_linespermsg[useron_level]*MAX_LINE_LEN); ,(ulong)cfg.level_linespermsg[useron_level]*MAX_LINE_LEN);
if(top[0] && !(mode&WM_NOTOP)) { if(top[0] && !(mode&WM_NOTOP)) {
strcpy((char *)buf,top); strcpy((char *)buf,top);
strcat((char *)buf,crlf);
l=strlen((char *)buf); l=strlen((char *)buf);
if(l < 4 || strcmp(buf + l - 4, "\r\n\r\n") != 0) {
strcat((char *)buf,crlf);
l += 2;
}
} }
else else
l=0; l=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment