From b7dd850c61bf55c62fe65fdffc0393938b0d501b Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Fri, 31 Dec 2021 18:21:27 +0000 Subject: [PATCH] Fix commands --- handler/commands.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/handler/commands.py b/handler/commands.py index f18ed4d..db3c1ae 100644 --- a/handler/commands.py +++ b/handler/commands.py @@ -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 " + helptext = "Find a transaction. Usage: find " @staticmethod def run(cmd, spl, length, authed, msg, agora, revolut, tx):