diff libpurple/conversation.c @ 17753:25d808baa395

In purple_conv_chat_clear_users(), use g_list_prepend() instead of g_list_append() as it's faster. The UI mustn't be expecting these in a given order anyway.
author Richard Laager <rlaager@wiktel.com>
date Wed, 06 Jun 2007 01:40:46 +0000
parents 4b18cc7b6177
children d40fd7106ebf 627f9d40ca1b 24d035ad12cd
line wrap: on
line diff
--- a/libpurple/conversation.c	Wed Jun 06 00:58:02 2007 +0000
+++ b/libpurple/conversation.c	Wed Jun 06 01:40:46 2007 +0000
@@ -1810,7 +1810,7 @@
 	if (ops != NULL && ops->chat_remove_users != NULL) {
 		for (l = users; l; l = l->next) {
 			PurpleConvChatBuddy *cb = l->data;
-			names = g_list_append(names, cb->name);
+			names = g_list_prepend(names, cb->name);
 		}
 		ops->chat_remove_users(conv, names);
 		g_list_free(names);