Skip to content

Commit f3af88d

Browse files
committed
Allow Twitch to gift anonymous subs
This happens whenever Twitch adds additional sub gifts when a user gifts subs anonymously
1 parent b4e77a0 commit f3af88d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

TwitchDownloaderCore/Tools/HighlightIcons.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,9 @@ public static HighlightType GetHighlightType(Comment comment)
155155
return HighlightType.Raid;
156156
}
157157

158+
const string TWITCH_ACCOUNT_ID = "12826";
158159
const string ANONYMOUS_GIFT_ACCOUNT_ID = "274598607"; // Display name is 'AnAnonymousGifter'
159-
if (comment.commenter._id is ANONYMOUS_GIFT_ACCOUNT_ID && GiftAnonymousRegex.IsMatch(comment.message.body))
160+
if (comment.commenter._id is ANONYMOUS_GIFT_ACCOUNT_ID or TWITCH_ACCOUNT_ID && GiftAnonymousRegex.IsMatch(comment.message.body))
160161
return HighlightType.GiftedAnonymous;
161162

162163
return HighlightType.None;

0 commit comments

Comments
 (0)