diff options
author | Antoine Pietri <antoine.pietri@lrde.epita.fr> | 2015-03-01 18:47:15 +0100 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-03-02 00:27:16 -0300 |
commit | d93c8bebaf03ee9e7ed9eb94d9bb432a6517ce2b (patch) | |
tree | 35b425045a30b46356bfb971a98b21de09180d31 /protocols/purple/ft.c | |
parent | ce70e881ee478b9394b5187642484818b31eefdc (diff) |
purple: move PurpleAccount from proto_data in a struct purple_data
Diffstat (limited to 'protocols/purple/ft.c')
-rw-r--r-- | protocols/purple/ft.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/purple/ft.c b/protocols/purple/ft.c index 28f5d228..d1484054 100644 --- a/protocols/purple/ft.c +++ b/protocols/purple/ft.c @@ -27,6 +27,7 @@ varying levels of success). */ #include "bitlbee.h" +#include "bpurple.h" #include <stdarg.h> @@ -284,12 +285,13 @@ void purple_transfer_request(struct im_connection *ic, file_transfer_t *ft, char static void purple_transfer_forward(struct file_transfer *ft) { struct prpl_xfer_data *px = ft->data; - PurpleAccount *pa = px->ic->proto_data; + struct purple_data *pd = px->ic->proto_data; /* xfer_new() will pick up this variable. It's a hack but we're not multi-threaded anyway. */ next_ft = ft; - serv_send_file(purple_account_get_connection(pa), px->handle, px->fn); + serv_send_file(purple_account_get_connection(pd->account), + px->handle, px->fn); } static gboolean purple_transfer_request_cb(gpointer data, gint fd, b_input_condition cond) |