Don't try to parse wallet args as a bet amount in modules/coins.py
This commit is contained in:
parent
69ebba27bb
commit
7c04ff2e89
1 changed files with 2 additions and 1 deletions
|
@ -524,7 +524,8 @@ class Module(ModuleManager.BaseModule):
|
||||||
if "0" in bets:
|
if "0" in bets:
|
||||||
raise utils.EventError("%s: You can't bet on 0" %
|
raise utils.EventError("%s: You can't bet on 0" %
|
||||||
event["user"].nickname)
|
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):
|
if len(bet_amounts) < len(bets):
|
||||||
raise utils.EventError("%s: Please provide an amount for each bet" %
|
raise utils.EventError("%s: Please provide an amount for each bet" %
|
||||||
event["user"].nickname)
|
event["user"].nickname)
|
||||||
|
|
Loading…
Reference in a new issue