diff options
author | mathieui <mathieui@mathieui.net> | 2014-05-19 23:58:15 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-05-19 23:58:15 +0200 |
commit | f782516e9585ab8aea4dceabd8aab3da42c5eec0 (patch) | |
tree | 5149f3d575c3349d71e9a9a3af97a4193eab9a9e | |
parent | 2ec83f3412b69a78f1b0331dedd40f09be5709d8 (diff) | |
download | poezio-f782516e9585ab8aea4dceabd8aab3da42c5eec0.tar.gz poezio-f782516e9585ab8aea4dceabd8aab3da42c5eec0.tar.bz2 poezio-f782516e9585ab8aea4dceabd8aab3da42c5eec0.tar.xz poezio-f782516e9585ab8aea4dceabd8aab3da42c5eec0.zip |
End all otr conversations when the plugins is unloader (or poezio exits)
-rw-r--r-- | plugins/otr.py | 3 |
1 files changed, 3 insertions, 0 deletions
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') |