comparison libpurple/protocols/jabber/jabber.c @ 25432:256fbe98f6be

The jabber_register_parse function was looking for the <x> node as a child of the <iq> node instead of the <query> 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).
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 07 Feb 2009 23:45:18 +0000
parents b5c82724598c
children 43055addf135 1d3274111180 ced3d4ab745a a2388ce30772 fa22ec9d1e84
comparison
equal deleted inserted replaced
25431:bba924f14a6b 25432:256fbe98f6be
1019 jabber_connection_schedule_close(js); 1019 jabber_connection_schedule_close(js);
1020 return; 1020 return;
1021 } 1021 }
1022 } 1022 }
1023 1023
1024 if((x = xmlnode_get_child_with_namespace(packet, "x", "jabber:x:data"))) { 1024 if((x = xmlnode_get_child_with_namespace(query, "x", "jabber:x:data"))) {
1025 jabber_x_data_request(js, x, jabber_register_x_data_cb, g_strdup(from)); 1025 jabber_x_data_request(js, x, jabber_register_x_data_cb, g_strdup(from));
1026 return; 1026 return;
1027 1027
1028 } else if((x = xmlnode_get_child_with_namespace(packet, "x", "jabber:x:oob"))) { 1028 } else if((x = xmlnode_get_child_with_namespace(query, "x", "jabber:x:oob"))) {
1029 xmlnode *url; 1029 xmlnode *url;
1030 1030
1031 if((url = xmlnode_get_child(x, "url"))) { 1031 if((url = xmlnode_get_child(x, "url"))) {
1032 char *href; 1032 char *href;
1033 if((href = xmlnode_get_data(url))) { 1033 if((href = xmlnode_get_data(url))) {