Mercurial > pidgin
diff libgaim/protocols/jabber/jabber.c @ 14294:8a6154a52b84
[gaim-migrate @ 16984]
get rid of some hardcoding of jabber IQ callbacks
this should let plugins add their own callbacks, I think
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 22 Aug 2006 18:28:00 +0000 |
parents | baff095b146c |
children | 8342b39f975b |
line wrap: on
line diff
--- a/libgaim/protocols/jabber/jabber.c Tue Aug 22 18:10:43 2006 +0000 +++ b/libgaim/protocols/jabber/jabber.c Tue Aug 22 18:28:00 2006 +0000 @@ -705,6 +705,10 @@ void jabber_register_parse(JabberStream *js, xmlnode *packet) { + const char *type; + if(!(type = xmlnode_get_attrib(packet, "type")) || strcmp(type, "result")) + return; + if(js->registration) { GaimRequestFields *fields; GaimRequestFieldGroup *group; @@ -1957,6 +1961,8 @@ sasl_client_init(NULL); #endif jabber_register_commands(); + + jabber_iq_init(); } GAIM_INIT_PLUGIN(jabber, init_plugin, info);