From c48428b0aba90f042e40da2b2a952d85dd947e9d Mon Sep 17 00:00:00 2001 From: moneromooo Date: Wed, 21 Jan 2015 19:44:54 +0000 Subject: [PATCH] blackjack: fix balance check with side bets --- tipbot/modules/blackjack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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