fix zeroconf name conflict answer.

This commit is contained in:
Yann Leboulanger 2010-05-02 11:59:13 +02:00
parent 8a1305c082
commit 8da03ee1d1
1 changed files with 2 additions and 1 deletions

View File

@ -1672,9 +1672,10 @@ class Interface:
def handle_event_zc_name_conflict(self, account, data): def handle_event_zc_name_conflict(self, account, data):
def on_ok(new_name): def on_ok(new_name):
gajim.config.set_per('accounts', account, 'name', new_name) gajim.config.set_per('accounts', account, 'name', new_name)
show = gajim.connections[account].old_show
status = gajim.connections[account].status status = gajim.connections[account].status
gajim.connections[account].username = new_name gajim.connections[account].username = new_name
gajim.connections[account].change_status(status, '') gajim.connections[account].change_status(show, status)
def on_cancel(): def on_cancel():
gajim.connections[account].change_status('offline', '') gajim.connections[account].change_status('offline', '')