--- a/libpurple/plugins/joinpart.c Fri Mar 14 19:30:31 2014 +0530 +++ b/libpurple/plugins/joinpart.c Mon Mar 31 07:25:15 2014 +0530 @@ -90,7 +90,7 @@ /* If the room is small, don't bother. */ chat = PURPLE_CHAT_CONVERSATION(conv); threshold = purple_prefs_get_int(THRESHOLD_PREF); - if (g_list_length(purple_chat_conversation_get_users(chat)) < threshold) + if (purple_chat_conversation_get_users_count(chat) < threshold) return FALSE; if (!purple_prefs_get_bool(HIDE_BUDDIES_PREF) &&