From 7c04ff2e8901bd341e624b170c2988dbef943775 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 23 Oct 2018 00:36:02 +0100 Subject: Don't try to parse wallet args as a bet amount in modules/coins.py --- modules/coins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.3.1-10-gc9f91