1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul synced 2024-09-18 01:50:50 +00:00

Hey ehm, don't allow people to redeem rewards that are disabled

This commit is contained in:
Ash Keel 2021-05-10 23:08:44 +02:00
parent 2262b3556e
commit b66c5743d8
No known key found for this signature in database
GPG key ID: CF2CC050478BD7E5

View file

@ -65,6 +65,11 @@ func cmdRedeem(bot *TwitchBot, message irc.PrivateMessage) {
continue
}
// Reward not active, return early
if !reward.Enabled {
return
}
// Get user balance
balance, ok := bot.Loyalty.Points[message.User.Name]
if !ok {