# HG changeset patch # User souliane # Date 1409580705 -7200 # Node ID 736f1dd6e14271aa2a65e95a597bb8c681d7e34c # Parent 1ac5ea74dbdff9fa7de35061172dad08615052f7 plugin OTR: two small fixes diff -r 1ac5ea74dbdf -r 736f1dd6e142 src/plugins/plugin_sec_otr.py --- a/src/plugins/plugin_sec_otr.py Mon Sep 01 16:05:28 2014 +0200 +++ b/src/plugins/plugin_sec_otr.py Mon Sep 01 16:11:45 2014 +0200 @@ -314,7 +314,7 @@ 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 @@ 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 {}