mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 06:33:02 +01:00
fixes
This commit is contained in:
parent
f6a6aecaf5
commit
c25296e65a
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
extern char *DATA_FILE;
|
extern char *DATA_FILE;
|
||||||
extern int store_data(Tox *m, char *path);
|
extern int store_data(Tox *m, char *path);
|
||||||
extern int num_groupchats;
|
|
||||||
|
|
||||||
extern FileSender file_senders[MAX_FILES];
|
extern FileSender file_senders[MAX_FILES];
|
||||||
extern ToxicFriend friends[MAX_FRIENDS_NUM];
|
extern ToxicFriend friends[MAX_FRIENDS_NUM];
|
||||||
@ -184,7 +183,7 @@ static void chat_onFileControl(ToxWindow *self, Tox *m, int num, uint8_t receive
|
|||||||
wprintw(ctx->history, "File transfer for '%s' accepted.\n", filename);
|
wprintw(ctx->history, "File transfer for '%s' accepted.\n", filename);
|
||||||
break;
|
break;
|
||||||
case TOX_FILECONTROL_PAUSE:
|
case TOX_FILECONTROL_PAUSE:
|
||||||
wprintw(ctx->history, "File transfer for '%s' paused.\n", filename);
|
// wprintw(ctx->history, "File transfer for '%s' paused.\n", filename);
|
||||||
break;
|
break;
|
||||||
case TOX_FILECONTROL_KILL:
|
case TOX_FILECONTROL_KILL:
|
||||||
wprintw(ctx->history, "File transfer for '%s' failed.\n", filename);
|
wprintw(ctx->history, "File transfer for '%s' failed.\n", filename);
|
||||||
|
@ -332,12 +332,10 @@ static void load_data(Tox *m, char *path)
|
|||||||
tox_load(m, buf, len);
|
tox_load(m, buf, len);
|
||||||
|
|
||||||
uint32_t i = 0;
|
uint32_t i = 0;
|
||||||
|
|
||||||
uint8_t name[TOX_MAX_NAME_LENGTH];
|
uint8_t name[TOX_MAX_NAME_LENGTH];
|
||||||
while (tox_get_name(m, i, name) != -1) {
|
|
||||||
on_friendadded(m, i);
|
while (tox_get_name(m, i, name) != -1)
|
||||||
i++;
|
on_friendadded(m, i++);
|
||||||
}
|
|
||||||
|
|
||||||
free(buf);
|
free(buf);
|
||||||
fclose(fd);
|
fclose(fd);
|
||||||
|
@ -13,7 +13,6 @@ extern char *DATA_FILE;
|
|||||||
|
|
||||||
static ToxWindow windows[MAX_WINDOWS_NUM];
|
static ToxWindow windows[MAX_WINDOWS_NUM];
|
||||||
static ToxWindow *active_window;
|
static ToxWindow *active_window;
|
||||||
static int num_windows;
|
|
||||||
|
|
||||||
extern ToxWindow *prompt;
|
extern ToxWindow *prompt;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user