Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
8134:ea3eb461efc0 | 8135:8f4ce853e685 |
---|---|
582 _("Already Registered"), NULL); | 582 _("Already Registered"), NULL); |
583 jabber_connection_schedule_close(js); | 583 jabber_connection_schedule_close(js); |
584 return; | 584 return; |
585 } | 585 } |
586 | 586 |
587 for(x = packet->child; x; x = x->next) { | 587 for(x = xmlnode_get_child(packet, "x"); x; x = xmlnode_get_next_twin(x)) { |
588 const char *xmlns; | 588 const char *xmlns; |
589 if(x->type != NODE_TYPE_TAG || strcmp(x->name, "x")) | |
590 continue; | |
591 | |
592 if(!(xmlns = xmlnode_get_attrib(x, "xmlns"))) | 589 if(!(xmlns = xmlnode_get_attrib(x, "xmlns"))) |
593 continue; | 590 continue; |
594 | 591 |
595 if(!strcmp(xmlns, "jabber:x:data")) { | 592 if(!strcmp(xmlns, "jabber:x:data")) { |
596 jabber_x_data_request(js, x, jabber_register_x_data_cb, NULL); | 593 jabber_x_data_request(js, x, jabber_register_x_data_cb, NULL); |