Changeset 8955 for branches/gajim_0.11.2/src/groupchat_control.py
- Timestamp:
- 11/09/07 20:30:15 (13 months ago)
- Files:
-
- 1 modified
-
branches/gajim_0.11.2/src/groupchat_control.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gajim_0.11.2/src/groupchat_control.py
r8937 r8955 187 187 188 188 self.room_jid = self.contact.jid 189 self.nick = contact.name 189 self.nick = contact.name.decode('utf-8') 190 self.new_nick = '' 190 191 self.name = self.room_jid.split('@')[0] 191 192 … … 868 869 self.print_conversation(s, 'info') 869 870 elif '303' in statusCode: # Someone changed his or her nick 870 if nick == self.nick: # We changed our nick 871 self.nick = new_nick 871 if nick == self.new_nick: # We changed our nick 872 self.nick = self.new_nick 873 self.new_nick = '' 872 874 s = _('You are now known as %s') % new_nick 873 875 else: … … 896 898 os.path.join(path, puny_new_nick + ext) 897 899 for old_file in files: 898 if os.path.exists(old_file) :900 if os.path.exists(old_file) and old_file != files[old_file]: 899 901 if os.path.exists(files[old_file]): 900 902 # Windows require this … … 1107 1109 return True 1108 1110 gajim.connections[self.account].join_gc(nick, self.room_jid, None) 1111 self.new_nick = nick 1109 1112 self.clear(self.msg_textview) 1110 1113 else: … … 1389 1392 gajim.connections[self.account].join_gc(nick, self.room_jid, None) 1390 1393 self.nick = nick 1394 1391 1395 instance = dialogs.InputDialog(title, prompt, proposed_nick, 1392 1396 is_modal = False, ok_handler = on_ok)
