libpurple/protocols/jabber/iq.c

branch
cpw.darkrain42.xmpp.iq-handlers
changeset 25813
2e5e39a3107c
parent 25557
00f750a7f902
child 25814
7407aa284a96
--- a/libpurple/protocols/jabber/iq.c	Thu Feb 05 00:59:58 2009 +0000
+++ b/libpurple/protocols/jabber/iq.c	Thu Feb 05 07:31:55 2009 +0000
@@ -304,9 +304,8 @@
 	 * being) sufficient.
 	 */
 	for (child = packet->child; child; child = child->next) {
-		if (child->type != XMLNODE_TYPE_TAG)
-			continue;
-		break;
+		if (child->type == XMLNODE_TYPE_TAG)
+			break;
 	}
 
 	type = xmlnode_get_attrib(packet, "type");

mercurial