comparison libpurple/plugins/joinpart.c @ 20453:69febfa6d307

propagate from branch 'im.pidgin.pidgin' (head d3e5a5add3f39caa08b46c83177328e51c2d961a) to branch 'im.pidgin.cpw.khc.msnp14' (head a8f6c999b039b4097aa70cd8d2597f3127615435)
author Carlos Silva <typ0@pidgin.im>
date Sat, 16 Jun 2007 04:00:32 +0000
parents 4ca97b26a8fb
children 926ccb104da0
comparison
equal deleted inserted replaced
20452:5c34a0a3c362 20453:69febfa6d307
84 g_return_val_if_fail(purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_CHAT, FALSE); 84 g_return_val_if_fail(purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_CHAT, FALSE);
85 85
86 /* If the room is small, don't bother. */ 86 /* If the room is small, don't bother. */
87 chat = PURPLE_CONV_CHAT(conv); 87 chat = PURPLE_CONV_CHAT(conv);
88 threshold = purple_prefs_get_int(THRESHOLD_PREF); 88 threshold = purple_prefs_get_int(THRESHOLD_PREF);
89 if (g_list_length(purple_conv_chat_get_users(chat)) < threshold) 89 if (g_list_length((GList *)purple_conv_chat_get_users(chat)) < threshold)
90 return FALSE; 90 return FALSE;
91 91
92 /* We always care about our buddies! */ 92 /* We always care about our buddies! */
93 if (purple_find_buddy(purple_conversation_get_account(conv), name)) 93 if (purple_find_buddy(purple_conversation_get_account(conv), name))
94 return FALSE; 94 return FALSE;
208 /* Destroy the hash table. The core plugin code will 208 /* Destroy the hash table. The core plugin code will
209 * disconnect the signals, and since Purple is single-threaded, 209 * disconnect the signals, and since Purple is single-threaded,
210 * we don't have to worry one will be called after this. */ 210 * we don't have to worry one will be called after this. */
211 g_hash_table_destroy((GHashTable *)data[0]); 211 g_hash_table_destroy((GHashTable *)data[0]);
212 212
213 g_source_remove(GPOINTER_TO_UINT(data[1])); 213 purple_timeout_remove(GPOINTER_TO_UINT(data[1]));
214 g_free(data); 214 g_free(data);
215 215
216 return TRUE; 216 return TRUE;
217 } 217 }
218 218