# HG changeset patch # User Elliott Sales de Andrade # Date 1234050318 0 # Node ID 256fbe98f6be592dc0445af7cd0729ff1154d2ac # Parent bba924f14a6ba7ad9946d4216d8afc838fee8790 The jabber_register_parse function was looking for the node as a child of the node instead of the node. (See Chs 4 & 5 of XEP-0077) Somebody (maybe it'll be me?) should probably check that the code for these two cases does what it's supposed to, since I don't think it would have run before now. It also looks like the precedence may be wrong (See Ch 6). diff -r bba924f14a6b -r 256fbe98f6be libpurple/protocols/jabber/jabber.c --- a/libpurple/protocols/jabber/jabber.c Fri Feb 06 14:23:25 2009 +0000 +++ b/libpurple/protocols/jabber/jabber.c Sat Feb 07 23:45:18 2009 +0000 @@ -1021,11 +1021,11 @@ } } - if((x = xmlnode_get_child_with_namespace(packet, "x", "jabber:x:data"))) { + if((x = xmlnode_get_child_with_namespace(query, "x", "jabber:x:data"))) { jabber_x_data_request(js, x, jabber_register_x_data_cb, g_strdup(from)); return; - } else if((x = xmlnode_get_child_with_namespace(packet, "x", "jabber:x:oob"))) { + } else if((x = xmlnode_get_child_with_namespace(query, "x", "jabber:x:oob"))) { xmlnode *url; if((url = xmlnode_get_child(x, "url"))) {