changeset 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 c5aab4bf799e
files libpurple/protocols/jabber/jabber.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c	Wed May 27 03:45:21 2009 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Wed May 27 03:50:33 2009 +0000
@@ -1665,6 +1665,8 @@
 		xmlnode *error, *x;
 		result = jabber_iq_new(js, JABBER_IQ_ERROR);
 		xmlnode_set_attrib(result->node, "id", id);
+		if (from)
+			xmlnode_set_attrib(result->node, "to", from);
 
 		error = xmlnode_new_child(result->node, "error");
 		xmlnode_set_attrib(error, "type", "cancel");