From dbba6b5e1a608a57b4f12b133a5989f1ba5fc262 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 2 Mar 2013 19:45:24 +0100 Subject: Fix /reconnect --- src/core.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/core.py') diff --git a/src/core.py b/src/core.py index d7afd773..719d0f56 100644 --- a/src/core.py +++ b/src/core.py @@ -598,12 +598,10 @@ class Core(object): parts of the client (for example, set the MucTabs as not joined, etc) """ msg = msg or '' - for tab in self.tabs: - if isinstance(tab, tabs.MucTab) and tab.joined: - tab.command_part(msg) self.save_config() - # Ugly fix thanks to gmail servers - self.xmpp.disconnect(reconnect) + self.xmpp.disconnect() + if reconnect: + self.xmpp.start() def send_message(self, msg): """ -- cgit v1.2.3