diff --git a/tipbot/modules/blackjack.py b/tipbot/modules/blackjack.py index 08d90d9..b7b21b6 100644 --- a/tipbot/modules/blackjack.py +++ b/tipbot/modules/blackjack.py @@ -572,7 +572,7 @@ def Blackjack(link,cmd): log_info("Dice: %s's bet refused: %s" % (identity, reason)) link.send("%s: %s" % (link.user.nick, reason)) return - enough, reason = IsPlayerBalanceAtLeast(link,units) + enough, reason = IsPlayerBalanceAtLeast(link,total_units_wagered) if not enough: link.send("%s: %s" % (link.user.nick, reason)) return