| 1023 | | contact = ctrl.contact |
| 1024 | | contact.show = show |
| 1025 | | contact.status = status |
| 1026 | | ctrl.update_ui() |
| 1027 | | uf_show = helpers.get_uf_show(show) |
| 1028 | | if status: |
| 1029 | | ctrl.print_conversation(_('%s is now %s (%s)') % (nick, uf_show, |
| 1030 | | status), 'status') |
| | 1028 | statusCode = array[9] |
| | 1029 | if '303' in statusCode: |
| | 1030 | new_nick = array[10] |
| | 1031 | ctrl.print_conversation(_('%s is now known as %s') % (nick, |
| | 1032 | new_nick), 'status') |
| | 1033 | gc_c = gajim.contacts.get_gc_contact(account, room_jid, new_nick) |
| | 1034 | c = gajim.contacts.contact_from_gc_contact(gc_c) |
| | 1035 | ctrl.gc_contact = gc_c |
| | 1036 | ctrl.contact = c |
| | 1037 | ctrl.draw_banner() |
| | 1038 | old_jid = room_jid + '/' + nick |
| | 1039 | new_jid = room_jid + '/' + new_nick |
| | 1040 | self.msg_win_mgr.change_key(old_jid, new_jid, account) |
| 1032 | | ctrl.print_conversation(_('%s is now %s') % (nick, uf_show), |
| 1033 | | 'status') |
| 1034 | | ctrl.parent_win.redraw_tab(ctrl) |
| | 1042 | contact = ctrl.contact |
| | 1043 | contact.show = show |
| | 1044 | contact.status = status |
| | 1045 | uf_show = helpers.get_uf_show(show) |
| | 1046 | if status: |
| | 1047 | ctrl.print_conversation(_('%s is now %s (%s)') % (nick, uf_show, |
| | 1048 | status), 'status') |
| | 1049 | else: |
| | 1050 | ctrl.print_conversation(_('%s is now %s') % (nick, uf_show), |
| | 1051 | 'status') |
| | 1052 | ctrl.parent_win.redraw_tab(ctrl) |
| | 1053 | ctrl.update_ui() |