Fix commands

This commit is contained in:
Mark Veidemanis 2021-12-31 18:21:27 +00:00
parent 520c0aa253
commit b7dd850c61
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 5 additions and 5 deletions

View File

@ -13,10 +13,10 @@ class IRCCommands(object):
"""
Get details of open trades and post on IRC.
"""
trades = agora.dashboard(send_irc=False, formatted=True)
if trades is False:
msg("Error getting trades.")
return
# Send IRC - we don't want to automatically send messages on IRC, even though
# this variable seems counter-intuitive here, we are doing something with the result
# then calling msg() ourselves, and we don't want extra spam in the channel.
trades = agora.dashboard(send_irc=False)
if not trades:
msg("No open trades.")
return
@ -126,7 +126,7 @@ class IRCCommands(object):
class find(object):
name = "find"
authed = True
helptext = "Finx a transaction. Usage: find <currency> <amount>"
helptext = "Find a transaction. Usage: find <currency> <amount>"
@staticmethod
def run(cmd, spl, length, authed, msg, agora, revolut, tx):