|
|
|
@ -626,7 +626,7 @@ twc_tfer_buffer_refresh(struct t_twc_tfer *tfer)
|
|
|
|
|
int
|
|
|
|
|
twc_tfer_file_send_control(struct t_twc_profile *profile, size_t index,
|
|
|
|
|
enum t_twc_tfer_file_status check,
|
|
|
|
|
enum TOX_FILE_CONTROL send,
|
|
|
|
|
enum Tox_File_Control send,
|
|
|
|
|
enum t_twc_tfer_file_status set)
|
|
|
|
|
{
|
|
|
|
|
struct t_twc_tfer_file *file;
|
|
|
|
@ -637,15 +637,16 @@ twc_tfer_file_send_control(struct t_twc_profile *profile, size_t index,
|
|
|
|
|
if (file->type == TWC_TFER_FILE_TYPE_UPLOADING &&
|
|
|
|
|
send == TOX_FILE_CONTROL_RESUME)
|
|
|
|
|
return -1;
|
|
|
|
|
enum TOX_ERR_FILE_CONTROL control_error;
|
|
|
|
|
enum Tox_Err_File_Control control_error;
|
|
|
|
|
tox_file_control(profile->tox, file->friend_number, file->file_number, send,
|
|
|
|
|
&control_error);
|
|
|
|
|
if (control_error)
|
|
|
|
|
{
|
|
|
|
|
weechat_printf(profile->buffer,
|
|
|
|
|
"%scannot send control command for \"%s\" file: %s",
|
|
|
|
|
"%scannot send control command for \"%s\" file: %d",
|
|
|
|
|
weechat_prefix("error"), file->filename,
|
|
|
|
|
twc_tox_err_file_control(control_error));
|
|
|
|
|
/* twc_tox_err_file_control() tox_err_file_control_to_string? */
|
|
|
|
|
control_error);
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
@ -661,7 +662,7 @@ twc_tfer_file_send_control(struct t_twc_profile *profile, size_t index,
|
|
|
|
|
twc_tfer_file_update(profile->tfer, file);
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
/* proforma */
|
|
|
|
|
/* dunno */
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|