cpw.malu.xmpp.google_ft: 1bc068c0: send an iq result for the session initia...

malu at pidgin.im malu at pidgin.im
Tue Sep 28 16:07:14 EDT 2010


----------------------------------------------------------------------
Revision: 1bc068c0dd0e2106028752a034532325755e06ea
Parent:   d594b68acb5780476888fbabb2ea92800fd25570
Author:   malu at pidgin.im
Date:     09/28/10 16:02:16
Branch:   im.pidgin.cpw.malu.xmpp.google_ft
URL: http://d.pidgin.im/viewmtn/revision/info/1bc068c0dd0e2106028752a034532325755e06ea

Changelog: 

send an iq result for the session initiate

Changes against parent d594b68acb5780476888fbabb2ea92800fd25570

  patched  libpurple/protocols/jabber/google/google_share.c

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/google/google_share.c	10a91c29c007290bd330274089a46fbd188a414f
+++ libpurple/protocols/jabber/google/google_share.c	825dc0594dead567697a04c0e69bf7f787fb8042
@@ -595,10 +595,15 @@ google_relay_response_share_handle_initi
 {
 	GoogleShareSessionData *session_data =
 		(GoogleShareSessionData *) session->session_data;
-	
+	JabberIq *result = jabber_iq_new(session->js, JABBER_IQ_RESULT);
+
 	purple_xfer_request(session_data->xfer);
 	google_share_init_agent(session, relay_ip, relay_udp, relay_tcp, relay_ssltcp,
 		relay_username, relay_password);
+
+	jabber_iq_set_id(result, session->iq_id);
+	xmlnode_set_attrib(result->node, "to", session->remote_jid);
+	jabber_iq_send(result);
 }
 
 void google_share_handle_initiate(JabberStream *js, GoogleSession *session,


More information about the Commits mailing list