From 948aa286e112b9bc2ccf53b1576466640bae1679 Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Sun, 24 Jul 2005 22:42:36 +0000 Subject: [PATCH] disconnect from server after 'register new' - fixes bug 603 --- src/gajim.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gajim.py b/src/gajim.py index ac59f085f..2df432641 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -556,6 +556,9 @@ class Interface: self.windows['account_modification'].account_is_ok(array[0]) self.windows[name] = {'infos': {}, 'chats': {}, 'gc': {}, 'gc_config': {}} gajim.awaiting_messages[name] = {} + # disconnect from server - our status in roster is offline + gajim.connections[name].connected = 1 + gajim.connections[name].change_status('offline', None, True) gajim.connections[name].connected = 0 gajim.nicks[name] = array[1]['name'] gajim.allow_notifications[name] = False @@ -570,6 +573,7 @@ class Interface: if self.windows.has_key('accounts'): self.windows['accounts'].init_accounts() self.roster.draw_roster() + if self.remote and self.remote.is_enabled(): self.remote.raise_signal('NewAccount', (account, array))