summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-05-01 18:37:27 +0200
committerFlorent Le Coz <louiz@louiz.org>2013-05-01 18:37:27 +0200
commitfb21f337e7e71e2efaada3f98d06172b91e2f46b (patch)
tree6f92edc992efb69c90b1e82dc295a914ac78bf32 /src
parent9d6acb0d7e0fbf55448a9016018e3b33ff3facf2 (diff)
downloadpoezio-fb21f337e7e71e2efaada3f98d06172b91e2f46b.tar.gz
poezio-fb21f337e7e71e2efaada3f98d06172b91e2f46b.tar.bz2
poezio-fb21f337e7e71e2efaada3f98d06172b91e2f46b.tar.xz
poezio-fb21f337e7e71e2efaada3f98d06172b91e2f46b.zip
Take into account the nick given by the MUC when joining a room.
This way, if the MUC service decides to give us an other nick than the one we asked it works properly.
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py
index ef31da67..b47d8e29 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -1408,7 +1408,8 @@ 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 from_nick == self.own_nick:
+ if '110' in status_codes:
+ self.own_nick = from_nick
self.joined = True
if self.get_name() in self.core.initial_joins:
self.core.initial_joins.remove(self.get_name())