Skip to content

Commit

Permalink
Fixed an issue where it was possible to use the channel reward SR eve…
Browse files Browse the repository at this point in the history
…n though it was turned off
  • Loading branch information
Inzaniity committed May 17, 2023
1 parent 95cd7ee commit 2b8e8ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Songify Slim/Util/Songify/TwitchHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ private static async void Client_OnMessageReceived(object sender, OnMessageRecei
Users.Add(user);
}

if (e.ChatMessage.CustomRewardId == Settings.Settings.TwRewardId && !PubSubEnabled)
if (e.ChatMessage.CustomRewardId == Settings.Settings.TwRewardId && !PubSubEnabled && Settings.Settings.TwSrReward)
{
int userlevel = CheckUserLevel(e.ChatMessage);
if (userlevel < 4 || !e.ChatMessage.IsBroadcaster)
Expand Down

0 comments on commit 2b8e8ba

Please sign in to comment.