Fix console command formatting filter

It would previously refuse to format anything starting with >>, but
now it specifically filters ">> " and ">>> " to match the server, so
other lines starting with ">>" such as ">>>>>memeing" is formatted.

(This is, if you were wondering, in preparation for an implementation
of greentext)
This commit is contained in:
Guangcong Luo 2016-04-02 03:04:04 -04:00
parent 19d3e7aa2f
commit 28820d2387

View File

@ -521,7 +521,7 @@ var Tools = {
parseMessage: function (str) {
str = Tools.escapeHTML(str);
// Don't format console commands (>>).
if (str.substr(0, 8) === '>>') return str;
if (str.substr(0, 9) === '>> ' || str.substr(0, 13) === '>>> ') return str;
// Don't format console results (<<).
if (str.substr(0, 9) === '&lt;&lt; ') return str;