aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/coins.py3
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)