pidgin: 6e02b385: If there's no vCard on the server, we ha...
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Sat Jun 27 13:50:54 EDT 2009
-----------------------------------------------------------------
Revision: 6e02b385a7decbbfdad9bc91c80b0bc86fbd8129
Ancestor: 027e73f54c5f8af3f80257a4e564fa8a3abb7df2
Author: darkrain42 at pidgin.im
Date: 2009-06-27T17:46:49
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6e02b385a7decbbfdad9bc91c80b0bc86fbd8129
Modified files:
libpurple/protocols/jabber/buddy.c
ChangeLog:
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.
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/buddy.c e97f9c27ebdc5bc148aa01ea25ed1995060758f7
+++ libpurple/protocols/jabber/buddy.c f52e0adebb4cc2e7d13fc4ef3c9dbec3d970effb
@@ -1102,8 +1102,12 @@ static void jabber_vcard_save_mine(Jabbe
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")) ||
More information about the Commits
mailing list