Verified Commit c1803944 authored by mathieui's avatar mathieui

fix a tb in the otr plugin

parent 900b67c0
......@@ -26,7 +26,8 @@ it is not pretty.
Installation
------------
To use the OTR plugin, you must first install pure-python-otr.
To use the OTR plugin, you must first install pure-python-otr and pycrypto
(for python3).
You have to install it from the git because a few issues were
found with the python3 compatibility while writing this plugin,
......@@ -232,7 +233,7 @@ class PoezioContext(Context):
if not tab:
tab = self.core.get_tab_by_name(safeJID(self.peer).bare,
DynamicConversationTab)
if not tab.locked_resource == safeJID(self.peer).resource:
if tab and not tab.locked_resource == safeJID(self.peer).resource:
tab = None
if self.state == STATE_ENCRYPTED:
if newstate == STATE_ENCRYPTED:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment