aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-23 00:36:02 +0100
committerGravatar jesopo2018-10-23 00:36:02 +0100
commit7c04ff2e8901bd341e624b170c2988dbef943775 (patch)
treee299ab6242b24dfdb4bd889988ce5e24bb84fb9a /modules
parentRoulette 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')
-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)