# HG changeset patch # User Nathan Walp # Date 1194109465 0 # Node ID 0cc12e6909e21909eb44459023dfd25044682edd # Parent 7a87450fdafe20b4870e5bb5dbaa802c061d2cf1 don't send a canceled user query fixes #3812 diff -r 7a87450fdafe -r 0cc12e6909e2 libpurple/protocols/jabber/buddy.c --- a/libpurple/protocols/jabber/buddy.c Sat Nov 03 16:19:50 2007 +0000 +++ b/libpurple/protocols/jabber/buddy.c Sat Nov 03 17:04:25 2007 +0000 @@ -2252,6 +2252,16 @@ xmlnode *query; JabberIq *iq; char *dir_server = data; + const char *type; + + /* if they've cancelled the search, we're + * just going to get an error if we send + * a cancel, so skip it */ + type = xmlnode_get_attrib(result, "type"); + if(type && !strcmp(type, "cancel")) { + g_free(dir_server); + return; + } iq = jabber_iq_new_query(js, JABBER_IQ_SET, "jabber:iq:search"); query = xmlnode_get_child(iq->node, "query");