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:
Qeole 2020-05-10 01:03:42 +01:00
parent d415841662
commit 9fcf1af922

View file

@ -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