comparison src/conversation.c @ 10958:90d22e1b68df

[gaim-migrate @ 12759] This is part of Levi's patch that I'd left off. I was considering removing gaim_conv_chat_remove_users because it isn't used anywhere, but I figured it was better to leave it. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 01 Jun 2005 00:26:40 +0000
parents 83a79d69160c
children ee4ca56ed8a5
comparison
equal deleted inserted replaced
10957:cc49b2c275ad 10958:90d22e1b68df
2138 int max = MIN(10, size); 2138 int max = MIN(10, size);
2139 GList *l; 2139 GList *l;
2140 2140
2141 *tmp = '\0'; 2141 *tmp = '\0';
2142 2142
2143 for (l = users, i = 0; i < max; i++, l = l->next) { 2143 for (l = users, i = 0; i < max; i++, l = l->next)
2144 g_strlcat(tmp, (char *)l->data, sizeof(tmp)); 2144 {
2145 2145 if (!gaim_conv_chat_is_user_ignored(chat, (char *)l->data))
2146 if (i < max - 1) 2146 {
2147 g_strlcat(tmp, ", ", sizeof(tmp)); 2147 g_strlcat(tmp, (char *)l->data, sizeof(tmp));
2148
2149 if (i < max - 1)
2150 g_strlcat(tmp, ", ", sizeof(tmp));
2151 }
2148 } 2152 }
2149 2153
2150 if (size > 10) 2154 if (size > 10)
2151 /* 2155 /*
2152 * This should probably use ngettext(), but this function 2156 * This should probably use ngettext(), but this function