| 216 g_free(url); |
216 g_free(url); |
| 217 jox->js = js; |
217 jox->js = js; |
| 218 jox->headers = g_string_new(""); |
218 jox->headers = g_string_new(""); |
| 219 jox->iq_id = g_strdup(id); |
219 jox->iq_id = g_strdup(id); |
| 220 |
220 |
| 221 xfer = purple_xfer_new(js->gc->account, PURPLE_XFER_RECEIVE, from); |
221 xfer = purple_xfer_new(purple_connection_get_account(js->gc), PURPLE_XFER_RECEIVE, from); |
| 222 if (xfer) |
222 if (xfer) |
| 223 { |
223 { |
| 224 purple_xfer_set_protocol_data(xfer, jox); |
224 purple_xfer_set_protocol_data(xfer, jox); |
| 225 |
225 |
| 226 if(!(filename = g_strdup(g_strrstr(jox->page, "/")))) |
226 if(!(filename = g_strdup(g_strrstr(jox->page, "/")))) |