/** * Gaim calls this function when the user selects Send File from the * buddy menu * It sets up the GaimXfer struct and tells Gaim to go ahead */ void irc_dccsend_send_file(GaimConnection *gc, const char *who, const char *file) { GaimXfer *xfer = irc_dccsend_new_xfer(gc, who); /* Perform the request */ if (file) gaim_xfer_request_accepted(xfer, file); else gaim_xfer_request(xfer); }
/** * Purple calls this function when the user selects Send File from the * buddy menu * It sets up the PurpleXfer struct and tells Purple to go ahead */ void irc_dccsend_send_file(PurpleConnection *gc, const char *who, const char *file) { PurpleXfer *xfer = irc_dccsend_new_xfer(gc, who); /* Perform the request */ if (file) purple_xfer_request_accepted(xfer, file); else purple_xfer_request(xfer); }