Mercurial > pidgin.yaz
changeset 10940:999555fbbbd9
[gaim-migrate @ 12730]
this is the other jabber ft thing, which went into oldstatus for 1.3.0
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 26 May 2005 03:54:25 +0000 |
parents | 45598096d197 |
children | cef48e318125 |
files | src/protocols/jabber/si.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/jabber/si.c Thu May 26 03:51:40 2005 +0000 +++ b/src/protocols/jabber/si.c Thu May 26 03:54:25 2005 +0000 @@ -45,6 +45,8 @@ typedef struct _JabberSIXfer { JabberStream *js; + gboolean accepted; + char *stream_id; char *iq_id; @@ -187,6 +189,10 @@ return; jsx = xfer->data; + + if(!jsx->accepted) + return; + if(jsx->iq_id) g_free(jsx->iq_id); jsx->iq_id = g_strdup(xmlnode_get_attrib(packet, "id")); @@ -622,6 +628,8 @@ if(jsx->iq_id) jabber_iq_set_id(iq, jsx->iq_id); + jsx->accepted = TRUE; + si = xmlnode_new_child(iq->node, "si"); xmlnode_set_attrib(si, "xmlns", "http://jabber.org/protocol/si");