Show
Ignore:
Timestamp:
11/09/07 20:30:15 (13 months ago)
Author:
asterix
Message:

merge some fixes from trunk: [8864] [8866] [8881] [8884] [8887] [8894] [8895] [8902] [8903] [8904] [8905] [8906] [8910] [8918] [8919] [8921] [8923] [8924] [8938] [8942] [8952] [8953] [8954]

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11.2/src/groupchat_control.py

    r8937 r8955  
    187187 
    188188                self.room_jid = self.contact.jid 
    189                 self.nick = contact.name 
     189                self.nick = contact.name.decode('utf-8') 
     190                self.new_nick = '' 
    190191                self.name = self.room_jid.split('@')[0] 
    191192 
     
    868869                                self.print_conversation(s, 'info') 
    869870                        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 = '' 
    872874                                        s = _('You are now known as %s') % new_nick 
    873875                                else: 
     
    896898                                                os.path.join(path, puny_new_nick + ext) 
    897899                                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]: 
    899901                                                if os.path.exists(files[old_file]): 
    900902                                                        # Windows require this 
     
    11071109                                        return True 
    11081110                                gajim.connections[self.account].join_gc(nick, self.room_jid, None) 
     1111                                self.new_nick = nick 
    11091112                                self.clear(self.msg_textview) 
    11101113                        else: 
     
    13891392                        gajim.connections[self.account].join_gc(nick, self.room_jid, None) 
    13901393                        self.nick = nick 
     1394 
    13911395                instance = dialogs.InputDialog(title, prompt, proposed_nick, 
    13921396                        is_modal = False, ok_handler = on_ok)