don't TB when someone changes his nick before having an assigned color (when he talk for the first time)

This commit is contained in:
Yann Leboulanger 2006-09-03 11:02:48 +00:00
parent b24d81f13d
commit 4dd4f27b19
1 changed files with 2 additions and 2 deletions

View File

@ -776,8 +776,8 @@ class GroupchatControl(ChatControlBase):
self.add_contact_to_roster(new_nick, show, role, affiliation, self.add_contact_to_roster(new_nick, show, role, affiliation,
status, jid) status, jid)
# keep nickname color # keep nickname color
self.gc_custom_colors[new_nick] =\ if nick in self.gc_custom_colors:
self.gc_custom_colors[nick] self.gc_custom_colors[new_nick] = self.gc_custom_colors[nick]
# rename vcard / avatar # rename vcard / avatar
puny_jid = helpers.sanitize_filename(self.room_jid) puny_jid = helpers.sanitize_filename(self.room_jid)
puny_nick = helpers.sanitize_filename(nick) puny_nick = helpers.sanitize_filename(nick)