Commit 8159e120 authored by Yann Leboulanger's avatar Yann Leboulanger

handle 210 status code in groupchat (Server changed our nickname)

parent 185e9694
......@@ -1236,6 +1236,11 @@ def chg_contact_status(self, nick, show, status, role, affiliation, jid,
iter = self.get_contact_iter(nick)
if not iter:
if '210' in statusCode:
# Server changed our nick
self.nick = nick
s = _('You are now known as %s') % nick
self.print_conversation(s, 'info', tim=tim)
iter = self.add_contact_to_roster(nick, show, role, affiliation,
status, jid)
newly_created = True
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