diff options
| author | 2018-10-23 00:36:02 +0100 | |
|---|---|---|
| committer | 2018-10-23 00:36:02 +0100 | |
| commit | 7c04ff2e8901bd341e624b170c2988dbef943775 (patch) | |
| tree | e299ab6242b24dfdb4bd889988ce5e24bb84fb9a /modules/coins.py | |
| parent | Roulette wins should include the payin (diff) | |
| signature | ||
Don't try to parse wallet args as a bet amount in modules/coins.py
Diffstat (limited to 'modules/coins.py')
| -rw-r--r-- | modules/coins.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/coins.py b/modules/coins.py index bdf87ffa..72721d54 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -524,7 +524,8 @@ class Module(ModuleManager.BaseModule): if "0" in bets: raise utils.EventError("%s: You can't bet on 0" % event["user"].nickname) - bet_amounts = [amount.lower() for amount in event["args_split"][1:]] + bet_amounts = [amount.lower() for amount in event["args_split"][ + 1:expected_args]] if len(bet_amounts) < len(bets): raise utils.EventError("%s: Please provide an amount for each bet" % event["user"].nickname) |
