Fix map command

This commit is contained in:
Mark Veidemanis 2022-04-23 11:53:30 +01:00
parent 22f708758a
commit 3ef24e86c8
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 15 additions and 1 deletions

View File

@ -494,7 +494,7 @@ class IRCCommands(object):
@staticmethod @staticmethod
def run(cmd, spl, length, authed, msg, agora, tx, ux): def run(cmd, spl, length, authed, msg, agora, tx, ux):
if length == 2: if length == 3:
reference = spl[1] reference = spl[1]
txid = spl[2] txid = spl[2]
is_released = tx.release_map_trade(reference, txid) is_released = tx.release_map_trade(reference, txid)
@ -956,3 +956,17 @@ class IRCCommands(object):
msg("Could not get bank details.") msg("Could not get bank details.")
return return
msg(bank_details) 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}")