Mercurial > libervia-backend
comparison src/plugins/plugin_sec_otr.py @ 1187:eb1144a22e20
plugin OTR: added a warning to tell that the history is not logged anymore and advanced feature are disabled when using OTR
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 08 Sep 2014 21:23:18 +0200 |
parents | bc811915a96a |
children | 8b891f9be183 |
comparison
equal
deleted
inserted
replaced
1186:9cc858acae91 | 1187:eb1144a22e20 |
---|---|
96 trusted_str = _(u"trusted") if trusted else _(u"untrusted") | 96 trusted_str = _(u"trusted") if trusted else _(u"untrusted") |
97 | 97 |
98 if old_state == potr.context.STATE_ENCRYPTED: | 98 if old_state == potr.context.STATE_ENCRYPTED: |
99 feedback = _(u"%(trusted)s OTR conversation with %(other_jid)s REFRESHED") % {'trusted': trusted_str, 'other_jid': self.peer.full()} | 99 feedback = _(u"%(trusted)s OTR conversation with %(other_jid)s REFRESHED") % {'trusted': trusted_str, 'other_jid': self.peer.full()} |
100 else: | 100 else: |
101 feedback = _(u"%(trusted)s Encrypted OTR conversation started with %(other_jid)s") % {'trusted': trusted_str, 'other_jid': self.peer.full()} | 101 feedback = _(u"%(trusted)s Encrypted OTR conversation started with %(other_jid)s\n/!\\ Your history is not logged anymore, and most of advanced features are disabled !") % {'trusted': trusted_str, 'other_jid': self.peer.full()} |
102 elif state == potr.context.STATE_FINISHED: | 102 elif state == potr.context.STATE_FINISHED: |
103 feedback = _(u"OTR conversation with %(other_jid)s is FINISHED") % {'other_jid': self.peer.full()} | 103 feedback = _(u"OTR conversation with %(other_jid)s is FINISHED") % {'other_jid': self.peer.full()} |
104 else: | 104 else: |
105 log.error(_(u"Unknown OTR state")) | 105 log.error(_(u"Unknown OTR state")) |
106 return | 106 return |