From 9fcf1af922c662db4cdae28e541102765dd84906 Mon Sep 17 00:00:00 2001 From: Qeole Date: Sun, 10 May 2020 01:03:42 +0100 Subject: [PATCH] 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: 9f01a0561722 ("commands: Add a command for interactive key verification.") --- matrix/commands.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/matrix/commands.py b/matrix/commands.py index 0e0ed2d..7271eb4 100644 --- a/matrix/commands.py +++ b/matrix/commands.py @@ -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