mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-16 18:06:55 +00:00
3.5.425. Fix whisper button visibility on mod cards. Fix log message colors. Reduce logging when not running a development build. Fix ban notices rendering HTML.
This commit is contained in:
parent
b84bd1d4a2
commit
87e7a7fb29
9 changed files with 39 additions and 22 deletions
|
@ -1534,7 +1534,8 @@ FFZ.prototype._build_mod_card_history = function(msg, modcard, show_from, ts_cli
|
|||
colored = '';
|
||||
}
|
||||
|
||||
var tokens = this.tokenize_chat_line(msg, true, false, true),
|
||||
// Use cached tokens on the off chance we have them, but don't count on them.
|
||||
var tokens = msg.cachedTokens || this.tokenize_chat_line(msg, true, false, true),
|
||||
message = '<span class="message' + colored + '" style="' + style + (colors ? '" data-color="' + raw_color : '') + '">' +
|
||||
(msg.style === 'action' && ! show_from ? '*' + name + ' ' : '') + this.render_tokens(tokens, true, false, msg.tags && msg.tags.bits) + '</span>';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue