diff src/protocols/jabber/jabber.c @ 8135:8f4ce853e685

[gaim-migrate @ 8840] created a convenience function, and used it. a lot. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sat, 17 Jan 2004 19:36:29 +0000
parents d60272410bd5
children e283be34aadf
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c	Sat Jan 17 19:21:39 2004 +0000
+++ b/src/protocols/jabber/jabber.c	Sat Jan 17 19:36:29 2004 +0000
@@ -584,11 +584,8 @@
 			return;
 		}
 
-		for(x = packet->child; x; x = x->next) {
+		for(x = xmlnode_get_child(packet, "x"); x; x = xmlnode_get_next_twin(x)) {
 			const char *xmlns;
-			if(x->type != NODE_TYPE_TAG || strcmp(x->name, "x"))
-				continue;
-
 			if(!(xmlns = xmlnode_get_attrib(x, "xmlns")))
 				continue;