1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 10:36:34 +01:00

implemented file receving

This commit is contained in:
Jfreegman
2013-10-11 00:23:39 -04:00
parent cb396c0e7c
commit e60e4f4727
6 changed files with 128 additions and 10 deletions

View File

@@ -367,10 +367,10 @@ void do_file_senders(Tox *m)
fclose(file_senders[i].file);
file_senders[i].file = NULL;
tox_file_sendcontrol(m, file_senders[i].friendnum, 0, file_senders[i].filenum, 3, 0, 0);
char msg[MAX_STR_SIZE + TOXIC_MAX_NAME_LENGTH + 50];
snprintf(msg, sizeof(msg), "File '%s' successfuly sent to %s.",
file_senders[i].filename, file_senders[i].friendname);
wprintw(prompt->window, "%s\n", msg);
/* TODO: move this alert to chat window */
wprintw(prompt->window, "File '%s' successfuly sent to %s.\n", file_senders[i].filename,
file_senders[i].friendname);
return;
}
}