Fix a silent traceback in the otr plugin

(the “X has not enabled OTR after n seconds.” would not be displayed)
This commit is contained in:
mathieui 2015-01-15 21:40:57 +01:00
parent 0efdcd12e2
commit 45f280f56c
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -882,6 +882,7 @@ class Plugin(BasePlugin):
else:
was_locked = False
def notify_otr_timeout():
nonlocal name
otr = self.get_context(name)
if isinstance(tab, DynamicConversationTab) and not was_locked:
if tab.locked_resource: