comparison libpurple/protocols/jabber/google.c @ 26851:edff8cc58d66

Avoid an assertion when acking the gmail poke
author Paul Aurich <paul@darkrain42.org>
date Sun, 10 May 2009 21:59:30 +0000
parents bb537c36d92f
children 657d42e865dd
comparison
equal deleted inserted replaced
26850:04af21d4be27 26851:edff8cc58d66
761 if (type != JABBER_IQ_SET) 761 if (type != JABBER_IQ_SET)
762 return; 762 return;
763 763
764 /* Acknowledge the notification */ 764 /* Acknowledge the notification */
765 iq = jabber_iq_new(js, JABBER_IQ_RESULT); 765 iq = jabber_iq_new(js, JABBER_IQ_RESULT);
766 xmlnode_set_attrib(iq->node, "to", from); 766 if (from)
767 xmlnode_set_attrib(iq->node, "to", from);
767 xmlnode_set_attrib(iq->node, "id", id); 768 xmlnode_set_attrib(iq->node, "id", id);
768 jabber_iq_send(iq); 769 jabber_iq_send(iq);
769 770
770 purple_debug(PURPLE_DEBUG_MISC, "jabber", 771 purple_debug(PURPLE_DEBUG_MISC, "jabber",
771 "Got new mail notification. Sending request for more info\n"); 772 "Got new mail notification. Sending request for more info\n");