1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-30 19:56:45 +02:00

save nicks and exit tox properly

This commit is contained in:
Jfreegman
2013-09-04 00:58:23 -04:00
parent 0be84ecbb3
commit 20d1ad9842
3 changed files with 6 additions and 1 deletions

View File

@ -64,8 +64,11 @@ void on_nickchange(Tox *m, int friendnumber, uint8_t *string, uint16_t length, v
int i;
for (i = 0; i < MAX_WINDOWS_NUM; ++i) {
if (windows[i].onNickChange != NULL)
if (windows[i].onNickChange != NULL) {
windows[i].onNickChange(&windows[i], friendnumber, string, length);
if (store_data(m, DATA_FILE))
wprintw(prompt->window, "\nCould not store Tox data\n");
}
}
}