mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-03 03:40:56 +00:00
4.76.3
* Added: Setting to block call-outs based on type. This should stay up to date automatically whenever Twitch adds new call-out types. * Added: Setting to specifically block clip suggestion call-outs. Twitch has reversed the roll-out for now but I suspect they'll be back. * Fixed: Bug related to badges and emote sets not being tracked correctly in some situations. * Fixed: Bug where the new replacement Clip button not functioning correctly after the player state changes.
This commit is contained in:
parent
18bff3371d
commit
93181dc8e8
9 changed files with 337 additions and 411 deletions
|
@ -238,7 +238,13 @@ export default class ChatLine extends Module {
|
|||
const months = msg.sub_cumulative || msg.sub_months,
|
||||
setting = this.chat.context.get('chat.subs.show');
|
||||
|
||||
if ( !(setting === 3 || (setting === 1 && out && months > 1) || (setting === 2 && months > 1)) )
|
||||
let has_message;
|
||||
if (setting === 1 && months > 1) {
|
||||
const tokens = msg.ffz_tokens = msg.ffz_tokens || t.chat.tokenizeMessage(msg, current_user);
|
||||
has_message = tokens.length > 0;
|
||||
}
|
||||
|
||||
if ( !(setting === 3 || (setting === 1 && has_message && months > 1) || (setting === 2 && months > 1)) )
|
||||
return null;
|
||||
|
||||
const user = msg.user,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue