summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-05-24 00:31:19 +0200
committermathieui <mathieui@mathieui.net>2011-05-24 00:31:19 +0200
commit7182f968682909760a2e0f35a27510e861202d08 (patch)
tree86a8ab72093045083e4965f1cf75c617fd015fa9 /src
parent5aff41b69be43cfec31ea4b6b5c735b500fae9db (diff)
downloadpoezio-7182f968682909760a2e0f35a27510e861202d08.tar.gz
poezio-7182f968682909760a2e0f35a27510e861202d08.tar.bz2
poezio-7182f968682909760a2e0f35a27510e861202d08.tar.xz
poezio-7182f968682909760a2e0f35a27510e861202d08.zip
fixes #2184
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py4
1 files 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: