From 46e3dece5e04fd8854596f32266c43083141526b Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Tue, 26 Mar 2019 12:28:41 +0100 Subject: [PATCH] Only /part tabs on disconnect, not on reconnect --- poezio/core/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poezio/core/core.py b/poezio/core/core.py index ed977b6d..cc838541 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -832,11 +832,11 @@ class Core: parts of the client (for example, set the MucTabs as not joined, etc) """ self.legitimate_disconnect = True - for tab in self.get_tabs(tabs.MucTab): - tab.command_part(msg) if reconnect: self.xmpp.reconnect(wait=0.0, reason=msg) else: + for tab in self.get_tabs(tabs.MucTab): + tab.command_part(msg) self.xmpp.disconnect(reason=msg) def send_message(self, msg: str) -> bool: