summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-03-02 19:45:24 +0100
committermathieui <mathieui@mathieui.net>2013-03-02 19:45:24 +0100
commitdbba6b5e1a608a57b4f12b133a5989f1ba5fc262 (patch)
tree749801b4f9661248571d36bcc95c941acf1dcf2c /src
parente1956533a6e04d7ba2afdbc841b48804a84120b3 (diff)
downloadpoezio-dbba6b5e1a608a57b4f12b133a5989f1ba5fc262.tar.gz
poezio-dbba6b5e1a608a57b4f12b133a5989f1ba5fc262.tar.bz2
poezio-dbba6b5e1a608a57b4f12b133a5989f1ba5fc262.tar.xz
poezio-dbba6b5e1a608a57b4f12b133a5989f1ba5fc262.zip
Fix /reconnect
Diffstat (limited to 'src')
-rw-r--r--src/core.py8
1 files changed, 3 insertions, 5 deletions
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):
"""