1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 15:33:25 +01:00

Update with latest core

This commit is contained in:
mannol 2014-03-11 01:04:53 +01:00
parent a80da2b58f
commit e6f285adc7

View File

@ -479,7 +479,7 @@ static void friendlist_onAv(ToxWindow *self, ToxAv *av)
Tox* m = toxav_get_tox(av);
if (friends[id].chatwin == -1) {
if (num_active_windows() < MAX_WINDOWS_NUM) {
if (get_num_active_windows() < MAX_WINDOWS_NUM) {
friends[id].chatwin = add_window(m, new_chat(m, friends[id].num));
} else {
uint8_t nick[TOX_MAX_NAME_LENGTH] = {'\0'};