From f782516e9585ab8aea4dceabd8aab3da42c5eec0 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 19 May 2014 23:58:15 +0200 Subject: End all otr conversations when the plugins is unloader (or poezio exits) --- plugins/otr.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/otr.py b/plugins/otr.py index c0cd8637..08f7fed6 100644 --- a/plugins/otr.py +++ b/plugins/otr.py @@ -410,6 +410,9 @@ class Plugin(BasePlugin): completion=self.completion_otr) def cleanup(self): + for context in self.contexts.values(): + context.disconnect() + ConversationTab.remove_information_element('otr') PrivateTab.remove_information_element('otr') -- cgit v1.2.3