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:
parent
2262b3556e
commit
b66c5743d8
1 changed files with 5 additions and 0 deletions
|
@ -65,6 +65,11 @@ func cmdRedeem(bot *TwitchBot, message irc.PrivateMessage) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Reward not active, return early
|
||||||
|
if !reward.Enabled {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Get user balance
|
// Get user balance
|
||||||
balance, ok := bot.Loyalty.Points[message.User.Name]
|
balance, ok := bot.Loyalty.Points[message.User.Name]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|
Loading…
Reference in a new issue