Skip to content
Snippets Groups Projects
Commit 88043a60 authored by deuce's avatar deuce
Browse files

Use the new msgutils.js to expand codes in message bodies.

parent 8a4cc3b6
No related branches found
No related tags found
No related merge requests found
<?xjs
load("sbbsdefs.js");
load("msgutils.js");
sub_code=http_request.query.sub_code[0];
var ANSI_formatted=false;
if(http_request.query.ansi != undefined && http_request.query.ansi[0]=='true')
......@@ -43,9 +44,7 @@ function linkify(body) {
if((!msg_area.sub[sub_code.toLowerCase()].ismoderated) || (hdr.attr & MSG_VALIDATED)!=0) {
if((hdr.attr & (MSG_PRIVATE|MSG_DELETE))==0) {
body=msgbase.get_msg_body(true,hdr.offset);
// Expand lone LFs
body=body.replace(/([^\r])\n/g, '$1\r\n');
body=body.replace(/^\n/mg, '\r\n');
body=expand_body(body, system.settings);
}
}
msgbase.close();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment