comparison libpurple/plugins/joinpart.c @ 18058:4ca97b26a8fb

Mark the return type const for the following functions. I noticed this while fixing some DBus stuff which I'll commit shortly. * purple_accounts_get_all * purple_connections_get_all * purple_connections_get_connecting * purple_conv_chat_get_ignored * purple_conv_chat_get_users * purple_get_chats * purple_get_conversations * purple_get_ims * purple_notify_user_info_get_entries References #1344
author Richard Laager <rlaager@wiktel.com>
date Thu, 07 Jun 2007 04:22:42 +0000
parents 0f4a562b38d1
children 926ccb104da0
comparison
equal deleted inserted replaced
18057:23b03396e71e 18058:4ca97b26a8fb
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;