# HG changeset patch # User Paul Aurich # Date 1233819115 0 # Node ID 19fa48931b9d6ffc17e0777c41a8e0b1193ad349 # Parent cbbafb072285d06f5899f410c461523a85776077 This is shorter and easier to read. diff -r cbbafb072285 -r 19fa48931b9d libpurple/protocols/jabber/iq.c --- 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");