From a4839a720ce7094e7e84f7a791892ce622fd57fe Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 2 Mar 2006 15:47:21 +0000 Subject: [PATCH] don't ask twice the password when we create an account and show correct page in vcard even we receive an empty vcard. Fixes #1560 --- src/common/connection.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/connection.py b/src/common/connection.py index 34cb5e1d2..0a643c2c2 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -1638,6 +1638,8 @@ class Connection: path_to_file = os.path.join(gajim.VCARD_PATH, jid) fil = open(path_to_file, 'w') fil.close() + elif jid == our_jid: + self.dispatch('MYVCARD', {'jid': jid}) del self.awaiting_answers[id] def _event_dispatcher(self, realm, event, data): @@ -1667,6 +1669,7 @@ class Connection: self.connection = None common.xmpp.features_nb.register(self.connection, data[0], req, _on_register_result) + return is_form = data[2] if is_form: conf = self.parse_data_form(data[1])