Use the correct arg_split index for parsing wallet in !givecoins

This commit is contained in:
jesopo 2018-10-20 13:55:47 +01:00
parent 44c67ad5d9
commit e7bece4621

View file

@ -260,9 +260,9 @@ class Module(ModuleManager.BaseModule):
:permission: givecoins :permission: givecoins
""" """
_, wallet_out = self._default_wallets(event["user"]) _, 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"], _, wallet_out = self._parse_wallets(event["user"],
event["args_split"][1]) event["args_split"][2])
target = event["server"].get_user(event["args_split"][0]) target = event["server"].get_user(event["args_split"][0])
try: try: