From b69e334ad01a8dd6e373d4bae7ba31711e0addd3 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 21 Oct 2018 08:21:58 +0100 Subject: [PATCH] wallet args in !roulette need to have their position calculated! --- modules/coins.py | 7 +++++-- 1 file 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: [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: