Changeset 9416

Show
Ignore:
Timestamp:
03/24/08 10:16:03 (8 months ago)
Author:
asterix
Message:

update GC_Contact instance when we change our nickname in a room. fixes #3784

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/groupchat_control.py

    r9402 r9416  
    10181018                                        else: 
    10191019                                                s = _('%s is now known as %s') % (nick, new_nick) 
    1020                                                 # We add new nick to muc roster here, so we don't see  
    1021                                                 # that "new_nick has joined the room" when he just changed nick. 
    1022                                                 # add_contact_to_roster will be called a second time  
    1023                                                 # after that, but that doesn't hurt 
    1024                                                 self.add_contact_to_roster(new_nick, show, role, affiliation, 
    1025                                                         status, jid) 
    1026                                                 if nick in self.attention_list: 
    1027                                                         self.attention_list.remove(nick) 
    1028                                                 # keep nickname color 
    1029                                                 if nick in self.gc_custom_colors: 
    1030                                                         self.gc_custom_colors[new_nick] = \ 
    1031                                                                 self.gc_custom_colors[nick] 
     1020                                        # We add new nick to muc roster here, so we don't see  
     1021                                        # that "new_nick has joined the room" when he just changed nick. 
     1022                                        # add_contact_to_roster will be called a second time  
     1023                                        # after that, but that doesn't hurt 
     1024                                        self.add_contact_to_roster(new_nick, show, role, affiliation, 
     1025                                                status, jid) 
     1026                                        if nick in self.attention_list: 
     1027                                                self.attention_list.remove(nick) 
     1028                                        # keep nickname color 
     1029                                        if nick in self.gc_custom_colors: 
     1030                                                self.gc_custom_colors[new_nick] = \ 
     1031                                                        self.gc_custom_colors[nick] 
    10321032                                        # rename vcard / avatar 
    10331033                                        puny_jid = helpers.sanitize_filename(self.room_jid)