Use the correct arg_split index for parsing wallet in !givecoins
This commit is contained in:
parent
44c67ad5d9
commit
e7bece4621
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue