From df43c4261150bf1fed6492311c905814b12b19fb Mon Sep 17 00:00:00 2001 From: souliane Date: Mon, 1 Sep 2014 16:11:45 +0200 Subject: [PATCH] plugin OTR: two small fixes --- src/plugins/plugin_sec_otr.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/plugin_sec_otr.py b/src/plugins/plugin_sec_otr.py index dc471f59..924ef603 100644 --- a/src/plugins/plugin_sec_otr.py +++ b/src/plugins/plugin_sec_otr.py @@ -314,7 +314,7 @@ class OTR(object): note_msg = _("Your correspondant {correspondent} is now UNTRUSTED") note = xml_tools.XMLUI(C.XMLUI_DIALOG, dialog_opt = { C.XMLUI_DATA_TYPE: C.XMLUI_DIALOG_NOTE, - C.XMLUI_DATA_MESS: note_msg.format(correspondent=otrctx.user.name)} + C.XMLUI_DATA_MESS: note_msg.format(correspondent=otrctx.peer)} ) return {'xmlui': note.toXml()} @@ -356,8 +356,8 @@ class OTR(object): for context in ctxMng.contexts.values(): if context.state not in (potr.context.STATE_FINISHED, potr.context.STATE_PLAINTEXT): context.disconnect() - ctxMng.account.privkey = None - ctxMng.account.getPrivkey() # as account.privkey is None, getPrivkey will generate a new key, and save it + ctxMng.account.privkey = None + ctxMng.account.getPrivkey() # as account.privkey is None, getPrivkey will generate a new key, and save it return {'xmlui': xml_tools.note(_("Your private key has been dropped")).toXml()} return {}