Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/buddy.c @ 27274:291724375feb
If there's no vCard on the server, we have to be able to set ours. Allows bootstrapping a new account with (at least) Prosody.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 27 Jun 2009 17:46:49 +0000 |
parents | 7d4eb0834107 |
children | c408e4dc3101 |
comparison
equal
deleted
inserted
replaced
27273:7d4eb0834107 | 27274:291724375feb |
---|---|
1100 { | 1100 { |
1101 xmlnode *vcard, *photo, *binval; | 1101 xmlnode *vcard, *photo, *binval; |
1102 char *txt, *vcard_hash = NULL; | 1102 char *txt, *vcard_hash = NULL; |
1103 | 1103 |
1104 if (type == JABBER_IQ_ERROR) { | 1104 if (type == JABBER_IQ_ERROR) { |
1105 xmlnode *error; | |
1105 purple_debug_warning("jabber", "Server returned error while retrieving vCard\n"); | 1106 purple_debug_warning("jabber", "Server returned error while retrieving vCard\n"); |
1106 return; | 1107 |
1108 error = xmlnode_get_child(packet, "error"); | |
1109 if (!error || !xmlnode_get_child(error, "item-not-found")) | |
1110 return; | |
1107 } | 1111 } |
1108 | 1112 |
1109 if((vcard = xmlnode_get_child(packet, "vCard")) || | 1113 if((vcard = xmlnode_get_child(packet, "vCard")) || |
1110 (vcard = xmlnode_get_child_with_namespace(packet, "query", "vcard-temp"))) | 1114 (vcard = xmlnode_get_child_with_namespace(packet, "query", "vcard-temp"))) |
1111 { | 1115 { |