Fix redist command

This commit is contained in:
Mark Veidemanis 2022-02-02 12:53:05 +00:00
parent 556aaf3d8f
commit 5a59e5e804
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 2 additions and 2 deletions

View File

@ -102,10 +102,10 @@ class IRCCommands(object):
@staticmethod @staticmethod
def run(cmd, spl, length, authed, msg, agora, revolut, tx, notify): def run(cmd, spl, length, authed, msg, agora, revolut, tx, notify):
for x in agora.redist_countries(): for x in agora.redist_countries():
if x["success"]: if x[0]["success"]:
msg(f"{x[0]['response']['data']['message']}: {x[1]}") msg(f"{x[0]['response']['data']['message']}: {x[1]}")
else: else:
msg(dumps(x["response"])) msg(dumps(x[0]["response"]))
class stripdupes(object): class stripdupes(object):
name = "stripdupes" name = "stripdupes"