# HG changeset patch # User Paul Aurich # Date 1246124809 0 # Node ID 291724375feb62de38245542375f93b595e14a89 # Parent 7d4eb0834107f8c5d633d1ef7db3eab1b9a13040 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. diff -r 7d4eb0834107 -r 291724375feb libpurple/protocols/jabber/buddy.c --- a/libpurple/protocols/jabber/buddy.c Sat Jun 27 17:31:33 2009 +0000 +++ b/libpurple/protocols/jabber/buddy.c Sat Jun 27 17:46:49 2009 +0000 @@ -1102,8 +1102,12 @@ char *txt, *vcard_hash = NULL; if (type == JABBER_IQ_ERROR) { + xmlnode *error; purple_debug_warning("jabber", "Server returned error while retrieving vCard\n"); - return; + + error = xmlnode_get_child(packet, "error"); + if (!error || !xmlnode_get_child(error, "item-not-found")) + return; } if((vcard = xmlnode_get_child(packet, "vCard")) ||