Fix MUC nick change

This commit is contained in:
Philipp Hörist 2018-12-04 19:43:39 +01:00
parent 86bbdd21fd
commit c2e2dd9a87
1 changed files with 2 additions and 2 deletions

View File

@ -1812,7 +1812,7 @@ class GroupchatControl(ChatControlBase):
elif '303' in obj.status_code: # Someone changed their nick elif '303' in obj.status_code: # Someone changed their nick
if obj.new_nick == self.new_nick or obj.nick == self.nick: if obj.new_nick == self.new_nick or obj.nick == self.nick:
# We changed our nick # We changed our nick
self.change_nick(obj.new_nick) self._change_nick(obj.new_nick)
self.new_nick = '' self.new_nick = ''
s = _('You are now known as %s') % self.nick s = _('You are now known as %s') % self.nick
else: else:
@ -1882,7 +1882,7 @@ class GroupchatControl(ChatControlBase):
if not iter_: if not iter_:
if '210' in obj.status_code: if '210' in obj.status_code:
# Server changed our nick # Server changed our nick
self.change_nick(obj.nick) self._change_nick(obj.nick)
s = _('You are now known as %s') % nick s = _('You are now known as %s') % nick
self.print_conversation(s, 'info', graphics=False) self.print_conversation(s, 'info', graphics=False)
iter_ = self.add_contact_to_roster(obj.nick, obj.show, role, iter_ = self.add_contact_to_roster(obj.nick, obj.show, role,