From 01e5856162f31235546460eb489b9976783be69d Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Tue, 5 Oct 2010 00:22:18 +0000 Subject: if we receive an unavailable presence from our nick (in a muc), disconnect from the muc --- src/gui.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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: -- cgit v1.2.3