diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/otr.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/otr.py b/plugins/otr.py index cceadb99..cef6d7d4 100644 --- a/plugins/otr.py +++ b/plugins/otr.py @@ -824,7 +824,8 @@ class Plugin(BasePlugin): context.disconnect() if isinstance(tab, DynamicConversationTab) and not tab.locked_resource: ctx = self.find_encrypted_context_with_matching(safeJID(name).bare) - ctx.disconnect() + if ctx is not None: + ctx.disconnect() elif action == 'start' or action == 'refresh': self.otr_start(tab, name, format_dict) elif action == 'ourfpr': |