fix nick behaviour when we enter a room with an already used nick.

This commit is contained in:
Yann Leboulanger 2007-11-05 21:49:42 +00:00
parent f150b19098
commit bf6e25576e
1 changed files with 2 additions and 4 deletions

View File

@ -1533,11 +1533,9 @@ class GroupchatControl(ChatControlBase):
_('The nickname has not allowed characters.'))
return
gajim.connections[self.account].join_gc(nick, self.room_jid, None)
self.new_nick = nick
def on_cancel():
self.new_nick = ''
self.nick = nick
instance = dialogs.InputDialog(title, prompt, proposed_nick,
is_modal = False, ok_handler = on_ok, cancel_handler = on_cancel)
is_modal = False, ok_handler = on_ok)
def minimize(self, status='offline'):
# Minimize it