summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: