| 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] |