Mercurial > pidgin.yaz
diff libgaim/protocols/jabber/oob.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 | 60b1bc8dbf37 |
children | ba12c5e9d7e7 |
line wrap: on
line diff
--- a/libgaim/protocols/jabber/oob.c Tue Aug 22 18:10:43 2006 +0000 +++ b/libgaim/protocols/jabber/oob.c Tue Aug 22 18:28:00 2006 +0000 @@ -192,8 +192,12 @@ GaimXfer *xfer; char *filename; char *url; + const char *type; xmlnode *querynode, *urlnode; + if(!(type = xmlnode_get_attrib(packet, "type")) || strcmp(type, "set")) + return; + if(!(querynode = xmlnode_get_child(packet, "query"))) return;