Commit dd3d8288 authored by Yann Leboulanger's avatar Yann Leboulanger

handle correctly when MUC server force us to change our nickname by sending a...

handle correctly when MUC server force us to change our nickname by sending a 303 error presence. Fixes #5055
parent f6eec287
......@@ -1159,8 +1159,9 @@ class GroupchatControl(ChatControlBase):
'reason': reason }
self.print_conversation(s, 'info', tim = tim)
elif '303' in statusCode: # Someone changed his or her nick
if new_nick == self.new_nick: # We changed our nick
self.nick = self.new_nick
if new_nick == self.new_nick or nick == self.nick:
# We changed our nick
self.nick = new_nick
self.new_nick = ''
s = _('You are now known as %s') % new_nick
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment