Fix map command
This commit is contained in:
parent
22f708758a
commit
3ef24e86c8
|
@ -494,7 +494,7 @@ class IRCCommands(object):
|
|||
|
||||
@staticmethod
|
||||
def run(cmd, spl, length, authed, msg, agora, tx, ux):
|
||||
if length == 2:
|
||||
if length == 3:
|
||||
reference = spl[1]
|
||||
txid = spl[2]
|
||||
is_released = tx.release_map_trade(reference, txid)
|
||||
|
@ -956,3 +956,17 @@ class IRCCommands(object):
|
|||
msg("Could not get bank details.")
|
||||
return
|
||||
msg(bank_details)
|
||||
|
||||
class id(object):
|
||||
name = "id"
|
||||
authed = True
|
||||
helptext = "Get the identity information of a user. Usage: id <platform> <username>"
|
||||
|
||||
@staticmethod
|
||||
def run(cmd, spl, length, authed, msg, agora, tx, ux):
|
||||
if length == 3:
|
||||
platform = spl[1]
|
||||
username = spl[2]
|
||||
uid = tx.create_uid(platform, username)
|
||||
first, last = tx.ux.verify.get_external_user_id_details(uid)
|
||||
msg(f"Name: {first} {last}")
|
||||
|
|
Loading…
Reference in New Issue