Strip pipe codes!

This commit is contained in:
Bryan Ashby 2018-12-17 21:39:10 -07:00
parent 03662dc056
commit 1f5ec39778
1 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,9 @@ const {
splitTextAtTerms, splitTextAtTerms,
} = require('../../string_util.js'); } = require('../../string_util.js');
const AnsiPrep = require('../../ansi_prep.js'); const AnsiPrep = require('../../ansi_prep.js');
const {
stripMciColorCodes
} = require('../../color_codes.js');
// deps // deps
const NNTPServerBase = require('nntp-server'); const NNTPServerBase = require('nntp-server');
@ -652,7 +655,7 @@ class NNTPServer extends NNTPServerBase {
} }
); );
} else { } else {
message.preparedBody = cleanControlCodes(message.message, { all : true }); message.preparedBody = stripMciColorCodes(cleanControlCodes(message.message, { all : true }));
return cb(null); return cb(null);
} }
} }