1
0
mirror of https://github.com/Tha14/toxic.git synced 2026-01-27 12:53:14 +01:00

small optimization

This commit is contained in:
Jfreegman
2014-03-06 19:39:57 -05:00
parent d712d6c898
commit 33e16fe870
6 changed files with 32 additions and 33 deletions

View File

@@ -90,7 +90,7 @@ void cmd_groupinvite(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*a
void cmd_join_group(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE])
{
if (num_active_windows() >= MAX_WINDOWS_NUM) {
if (get_num_active_windows() >= MAX_WINDOWS_NUM) {
wattron(window, COLOR_PAIR(RED));
wprintw(window, " * Warning: Too many windows are open.\n");
wattron(window, COLOR_PAIR(RED));