comparison libpurple/protocols/jabber/jabber.c @ 26958:c41698323c2f

No, I had that right the first time; if it's not our account, then there *is* a from and we need to route the IQ to the proper place.
author Paul Aurich <paul@darkrain42.org>
date Wed, 27 May 2009 03:50:33 +0000
parents 373141b35c52
children cd78ea46e9bd
comparison
equal deleted inserted replaced
26957:373141b35c52 26958:c41698323c2f
1663 1663
1664 if (!jabber_is_own_account(js, from)) { 1664 if (!jabber_is_own_account(js, from)) {
1665 xmlnode *error, *x; 1665 xmlnode *error, *x;
1666 result = jabber_iq_new(js, JABBER_IQ_ERROR); 1666 result = jabber_iq_new(js, JABBER_IQ_ERROR);
1667 xmlnode_set_attrib(result->node, "id", id); 1667 xmlnode_set_attrib(result->node, "id", id);
1668 if (from)
1669 xmlnode_set_attrib(result->node, "to", from);
1668 1670
1669 error = xmlnode_new_child(result->node, "error"); 1671 error = xmlnode_new_child(result->node, "error");
1670 xmlnode_set_attrib(error, "type", "cancel"); 1672 xmlnode_set_attrib(error, "type", "cancel");
1671 x = xmlnode_new_child(error, "not-allowed"); 1673 x = xmlnode_new_child(error, "not-allowed");
1672 xmlnode_set_namespace(x, "urn:ietf:params:xml:ns:xmpp-stanzas"); 1674 xmlnode_set_namespace(x, "urn:ietf:params:xml:ns:xmpp-stanzas");