# HG changeset patch # User Paul Aurich # Date 1249094021 0 # Node ID cbbde19ce02d791e1719f5d4a1d101c8e2bf8771 # Parent 1ea1aee7184834c08c26850d4088d9597cbdb5ef jabber: disco#info queries with no 'from' are from the server; valid. diff -r 1ea1aee71848 -r cbbde19ce02d libpurple/protocols/jabber/disco.c --- a/libpurple/protocols/jabber/disco.c Sat Aug 01 01:53:02 2009 +0000 +++ b/libpurple/protocols/jabber/disco.c Sat Aug 01 02:33:41 2009 +0000 @@ -98,10 +98,6 @@ JabberIqType type, const char *id, xmlnode *in_query) { - - if(!from) - return; - if(type == JABBER_IQ_GET) { xmlnode *query, *identity, *feature; JabberIq *iq; @@ -116,7 +112,8 @@ jabber_iq_set_id(iq, id); - xmlnode_set_attrib(iq->node, "to", from); + if (from) + xmlnode_set_attrib(iq->node, "to", from); query = xmlnode_get_child(iq->node, "query"); if(node) @@ -208,7 +205,8 @@ xmlnode_set_namespace(bad_request, "urn:ietf:params:xml:ns:xmpp-stanzas"); jabber_iq_set_id(iq, id); - xmlnode_set_attrib(iq->node, "to", from); + if (from) + xmlnode_set_attrib(iq->node, "to", from); jabber_iq_send(iq); }