From e6f285adc7f99fafb7f56f655f81f37971c656a2 Mon Sep 17 00:00:00 2001 From: mannol Date: Tue, 11 Mar 2014 01:04:53 +0100 Subject: [PATCH] Update with latest core --- src/friendlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/friendlist.c b/src/friendlist.c index ebfcb3c..f4df519 100644 --- a/src/friendlist.c +++ b/src/friendlist.c @@ -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'};