End all otr conversations when the plugins is unloader (or poezio exits)

This commit is contained in:
mathieui 2014-05-19 23:58:15 +02:00
parent 2ec83f3412
commit f782516e95

View file

@ -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')