src/protocols/jabber/si.c

changeset 8135
d4df7d1821a5
parent 7395
e5595e8e13e4
child 8231
347c8992c445
--- a/src/protocols/jabber/si.c	Sat Jan 17 19:21:39 2004 +0000
+++ b/src/protocols/jabber/si.c	Sat Jan 17 19:36:29 2004 +0000
@@ -82,18 +82,15 @@
 	if(!(feature = xmlnode_get_child(si, "feature")))
 		return;
 
-	for(x = feature->child; x; x = x->next) {
+	for(x = xmlnode_get_child(feature, "x"); x; x = xmlnode_get_next_twin(x)) {
 		const char *xmlns;
-		if(x->type != NODE_TYPE_TAG)
-			continue;
 		if(!(xmlns = xmlnode_get_attrib(x, "xmlns")))
 			continue;
 		if(strcmp(xmlns, "jabber:x:data"))
 			continue;
-		for(field = x->child; field; field = field->next) {
+		for(field = xmlnode_get_child(x, "field"); field;
+				field = xmlnode_get_next_twin(field)) {
 			const char *var;
-			if(field->type != NODE_TYPE_TAG)
-				continue;
 			if(!(var = xmlnode_get_attrib(field, "var")))
 				continue;
 			if(!strcmp(var, "stream-method")) {

mercurial