summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-05-09 13:20:46 +0200
committerFlorent Le Coz <louiz@louiz.org>2013-05-09 13:20:46 +0200
commitffe33c5da3d66795890868796befb9fd936d1ab3 (patch)
tree3acf37a2bbf4400b07def46317ccc0125a15961b
parent708053991a9a742c6755b6e2fd1c1a72cff49c43 (diff)
downloadpoezio-ffe33c5da3d66795890868796befb9fd936d1ab3.tar.gz
poezio-ffe33c5da3d66795890868796befb9fd936d1ab3.tar.bz2
poezio-ffe33c5da3d66795890868796befb9fd936d1ab3.tar.xz
poezio-ffe33c5da3d66795890868796befb9fd936d1ab3.zip
Add a little workaround for MUC servers that do not send the 110 status
-rw-r--r--src/tabs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py
index e927a0c7..8dfc8095 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -1408,7 +1408,10 @@ class MucTab(ChatTab):
new_user = User(from_nick, affiliation, show, status, role, jid)
self.users.append(new_user)
self.core.events.trigger('muc_join', presence, self)
- if '110' in status_codes:
+ if '110' in status_codes or self.own_nick == from_nick:
+ # second part of the condition is a workaround for old
+ # ejabberd or every gateway in the world that just do
+ # not send a 110 status code with the presence
self.own_nick = from_nick
self.joined = True
if self.get_name() in self.core.initial_joins: