Don't try to parse wallet args as a bet amount in modules/coins.py

This commit is contained in:
jesopo 2018-10-23 00:36:02 +01:00
parent 69ebba27bb
commit 7c04ff2e89

View file

@ -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)