diff options
| author | 2018-10-21 08:21:58 +0100 | |
|---|---|---|
| committer | 2018-10-21 08:21:58 +0100 | |
| commit | b69e334ad01a8dd6e373d4bae7ba31711e0addd3 (patch) | |
| tree | 98bcb2d7e2d8ef4d7c2109719c8b7ba02a47e39d | |
| parent | Standardise "Failed to load results" errors! (diff) | |
| signature | ||
wallet args in !roulette need to have their position calculated!
| -rw-r--r-- | modules/coins.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/coins.py b/modules/coins.py index 012743ce..01e3095b 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -444,10 +444,13 @@ class Module(ModuleManager.BaseModule): :help: Spin a roulette wheel :usage: <type> <amount> [wallet_in:wallet_out] """ + expected_args = 1 + expected_args += len(event["args_split"][0].split(",")) + wallet_in, wallet_out = self._default_wallets(event["user"]) - if len(event["args_split"]) > 2: + if len(event["args_split"]) > expected_args: wallet_in, wallet_out = self._parse_wallets(event["user"], - event["args_split"][2]) + event["args_split"][expected_args]) bets = event["args_split"][0].lower().split(",") if "0" in bets: |
