diff options
| author | 2018-10-20 13:55:47 +0100 | |
|---|---|---|
| committer | 2018-10-20 13:55:47 +0100 | |
| commit | e7bece4621051b392639348d60316850a718ba1a (patch) | |
| tree | 000cdd4b526ed6db18cbfc052a6ef5740f6b9b19 | |
| parent | Typo in modules/channel_op, 'this' -> 'self' (diff) | |
| signature | ||
Use the correct arg_split index for parsing wallet in !givecoins
| -rw-r--r-- | modules/coins.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/coins.py b/modules/coins.py index 9d7cae88..472c449b 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -260,9 +260,9 @@ class Module(ModuleManager.BaseModule): :permission: givecoins """ _, wallet_out = self._default_wallets(event["user"]) - if len(event["args_split"]) > 1: + if len(event["args_split"]) > 2: _, wallet_out = self._parse_wallets(event["user"], - event["args_split"][1]) + event["args_split"][2]) target = event["server"].get_user(event["args_split"][0]) try: |
