Mercurial > pidgin.yaz
diff libgaim/protocols/jabber/si.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 | 645598a4ec04 |
children | 67a6716bf4a7 |
line wrap: on
line diff
--- a/libgaim/protocols/jabber/si.c Tue Aug 22 18:10:43 2006 +0000 +++ b/libgaim/protocols/jabber/si.c Tue Aug 22 18:28:00 2006 +0000 @@ -191,7 +191,10 @@ GaimXfer *xfer; JabberSIXfer *jsx; xmlnode *query, *streamhost; - const char *sid, *from; + const char *sid, *from, *type; + + if(!(type = xmlnode_get_attrib(packet, "type")) || strcmp(type, "set")) + return; if(!(from = xmlnode_get_attrib(packet, "from"))) return;