libpurple/protocols/jabber/google.c

changeset 27083
ddab1fcc8436
parent 27079
baa7cbe5775a
parent 27081
51d62a0b66f9
child 27089
171a74c6fa72
--- a/libpurple/protocols/jabber/google.c	Sun May 10 22:06:08 2009 +0000
+++ b/libpurple/protocols/jabber/google.c	Sun May 10 22:07:22 2009 +0000
@@ -764,7 +764,8 @@
 
 	/* Acknowledge the notification */
 	iq = jabber_iq_new(js, JABBER_IQ_RESULT);
-	xmlnode_set_attrib(iq->node, "to", from);
+	if (from)
+		xmlnode_set_attrib(iq->node, "to", from);
 	xmlnode_set_attrib(iq->node, "id", id);
 	jabber_iq_send(iq);
 

mercurial