From 34ca041176d59cb08b55aa1b1ccf752621d2caab Mon Sep 17 00:00:00 2001 From: mcmlxxix <> Date: Tue, 17 Mar 2015 19:37:57 +0000 Subject: [PATCH] strip some non-display characters from Message objects on creation --- exec/load/json-chat.js | 1 + 1 file changed, 1 insertion(+) diff --git a/exec/load/json-chat.js b/exec/load/json-chat.js index e628746439..1fcf593919 100644 --- a/exec/load/json-chat.js +++ b/exec/load/json-chat.js @@ -299,6 +299,7 @@ function JSONChat(usernum,jsonclient,host,port) { this.nick = nick; this.str = str; this.time = time; + this.str = this.str.replace(/[\f\r\n\x14\x15\x10\b]/g,''); } /* retrieve user list */ -- GitLab