summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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())