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