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

This commit is contained in:
Yann Leboulanger 2006-03-02 15:47:21 +00:00
parent c34adb6f00
commit a4839a720c
1 changed files with 3 additions and 0 deletions

View File

@ -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])