diff options
author | Gary Kramlich <grim@reaperworld.com> | 2017-11-24 00:34:11 -0600 |
---|---|---|
committer | Gary Kramlich <grim@reaperworld.com> | 2017-11-24 00:34:11 -0600 |
commit | 51260b976312621df70510467961d774dee7e98e (patch) | |
tree | 1011b53e8a8a0121abc09aff7b74b4c4d9070582 /libpurple/server.c | |
parent | ad4e7af649567a372a55ea5eacacb86f79042d35 (diff) | |
download | pidgin-51260b976312621df70510467961d774dee7e98e.tar.gz |
A bunch more work on this, still have jabber to update and more unit tests to write
Diffstat (limited to 'libpurple/server.c')
-rw-r--r-- | libpurple/server.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libpurple/server.c b/libpurple/server.c index 66a29991fe..8ee2023d33 100644 --- a/libpurple/server.c +++ b/libpurple/server.c @@ -895,9 +895,10 @@ void purple_serv_send_file(PurpleConnection *gc, const char *who, const char *fi protocol = purple_connection_get_protocol(gc); if(PURPLE_IS_PROTOCOL_XFER(protocol)) { - PurpleProtocolXferInterface *iface = PURPLE_PROTOCOL_XFER_GET_IFACE(protocol); - if(purple_protocol_xfer_can_receive(iface, gc, who)) { - purple_protocol_xfer_send(iface, gc, who, file); + PurpleProtocolXfer *xfer = PURPLE_PROTOCOL_XFER(protocol); + + if(purple_protocol_xfer_can_receive(xfer, gc, who)) { + purple_protocol_xfer_send(xfer, gc, who, file); } } } |