commands: fix user/device ids in error messages for "/olm verification"
When passing arguments to format error messages for "/olm verification",
the order of device id and user id has been swapped, leading to
confusing messages. Let's restore the correct order.
Fixes: 9f01a05617
("commands: Add a command for interactive key verification.")
This commit is contained in:
parent
d415841662
commit
9fcf1af922
1 changed files with 4 additions and 4 deletions
|
@ -807,15 +807,15 @@ def olm_sas_command(server, args):
|
|||
device = device_store[args.user_id][args.device_id]
|
||||
except KeyError:
|
||||
server.error("Device {} of user {} not found".format(
|
||||
args.user_id,
|
||||
args.device_id
|
||||
args.device_id,
|
||||
args.user_id
|
||||
))
|
||||
return W.WEECHAT_RC_OK
|
||||
|
||||
if device.deleted:
|
||||
server.error("Device {} of user {} is deleted.".format(
|
||||
args.user_id,
|
||||
args.device_id
|
||||
args.device_id,
|
||||
args.user_id
|
||||
))
|
||||
return W.WEECHAT_RC_OK
|
||||
|
||||
|
|
Loading…
Reference in a new issue