summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-10-05 00:22:18 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-10-05 00:22:18 +0000
commit01e5856162f31235546460eb489b9976783be69d (patch)
treee98397c095d5eae125a8c6ec8b8d12732543df17 /src
parent896fa313d290549db43a75dd7ab0dd2b49d0aef9 (diff)
downloadpoezio-01e5856162f31235546460eb489b9976783be69d.tar.gz
poezio-01e5856162f31235546460eb489b9976783be69d.tar.bz2
poezio-01e5856162f31235546460eb489b9976783be69d.tar.xz
poezio-01e5856162f31235546460eb489b9976783be69d.zip
if we receive an unavailable presence from our nick (in a muc), disconnect from the muc
Diffstat (limited to 'src')
-rw-r--r--src/gui.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui.py b/src/gui.py
index 0be0b6ad..98145449 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -342,6 +342,9 @@ class Gui(object):
When an user leaves a groupchat
"""
room.users.remove(user)
+ if room.own_nick == user.nick:
+ # We are now out of the room. Happens with some buggy (? not sure) servers
+ room.disconnect()
hide_exit_join = config.get('hide_exit_join', -1) if config.get('hide_exit_join', -1) >= -1 else -1
if hide_exit_join == -1 or user.has_talked_since(hide_exit_join):
if not jid.full: