From 7182f968682909760a2e0f35a27510e861202d08 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 24 May 2011 00:31:19 +0200 Subject: fixes #2184 --- src/tabs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tabs.py b/src/tabs.py index 4a7e26f5..17b15cf3 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -511,7 +511,7 @@ class MucTab(ChatTab): def command_cycle(self, arg): if self.get_room().joined: muc.leave_groupchat(self.core.xmpp, self.get_name(), self.get_room().own_nick, arg) - self.get_room().joined = False + self.get_room().disconnect() self.core.command_join('/', "0") def command_recolor(self, arg): @@ -812,7 +812,7 @@ class MucTab(ChatTab): room = self.get_room() if not room.joined: # user in the room BEFORE us. # ignore redondant presence message, see bug #1509 - if from_nick not in [user.nick for user in room.users]: + if from_nick not in [user.nick for user in room.users] and typ != "unavailable": new_user = User(from_nick, affiliation, show, status, role, jid) room.users.append(new_user) if from_nick == room.own_nick: -- cgit v1.2.3