diff --git a/src/bin/channel.c b/src/bin/channel.c index 31113a0..f2ea1de 100644 --- a/src/bin/channel.c +++ b/src/bin/channel.c @@ -33,6 +33,7 @@ struct _Channel Evas_Object *o_dismiss; Eina_Bool visible : 1; Eina_List *users; + int opcount; } userlist; struct @@ -876,7 +877,6 @@ void _channel_userlist_user_append(Channel *chl, const char *user, Eina_Bool op) { char users[PATH_MAX]; - static int opcount; if ((!user) || (strlen(user) < 1)) return; @@ -907,11 +907,11 @@ _channel_userlist_user_append(Channel *chl, const char *user, Eina_Bool op) elm_list_item_sorted_insert(chl->userlist.o_list, user, icon, NULL, NULL, &data, _cb_userlist_compare); - opcount++; + chl->userlist.opcount++; } snprintf(users, sizeof(users), "(%d ops, %d total)", - opcount, eina_list_count(chl->userlist.users)); + chl->userlist.opcount, eina_list_count(chl->userlist.users)); elm_object_text_set(chl->userlist.o_label, users); }