diff pidgin/gtkblist.c @ 22113:3afd04d5f9d6

disapproval of revision '55eb5e28f52c9cdccc6229a8314ffbdac2260843'
author Etan Reisner <pidgin@unreliablesource.net>
date Tue, 15 Jan 2008 17:17:53 +0000
parents 5b6d6ea542b8
children 00c20312e289
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Tue Jan 15 04:58:42 2008 +0000
+++ b/pidgin/gtkblist.c	Tue Jan 15 17:17:53 2008 +0000
@@ -3316,34 +3316,24 @@
 
 		purple_notify_user_info_destroy(user_info);
 	} else if (PURPLE_BLIST_NODE_IS_GROUP(node)) {
-		gint count, total;
 		PurpleGroup *group = (PurpleGroup*)node;
 		PurpleNotifyUserInfo *user_info;
 
 		user_info = purple_notify_user_info_new();
 
-		count = purple_blist_get_group_online_count(group);
-
-		if (count != 0) {
-			/* Online buddies in group */
-			tmp = g_strdup_printf("%d", count);
-			purple_notify_user_info_add_pair(user_info,
-			                                 _("Online Buddies"),
-			                                 tmp);
-			g_free(tmp);
-		}
-		count = 0;
-
-		count = purple_blist_get_group_size(group, FALSE);
-		if (count != 0) {
-			/* Total buddies (from online accounts) in group */
-			tmp = g_strdup_printf("%d", count);
-			purple_notify_user_info_add_pair(user_info,
-			                                 _("Total Buddies"),
-			                                 tmp);
-			g_free(tmp);
-		}
-		count = 0;
+		/* Total buddies (from online accounts) in group */
+		tmp = g_strdup_printf("%d",
+		                      purple_blist_get_group_size(group, FALSE));
+		purple_notify_user_info_add_pair(user_info, _("Total Buddies"),
+		                                 tmp);
+		g_free(tmp);
+
+		/* Online buddies in group */
+		tmp = g_strdup_printf("%d",
+		                      purple_blist_get_group_online_count(group));
+		purple_notify_user_info_add_pair(user_info, _("Online Buddies"),
+		                                 tmp);
+		g_free(tmp);
 
 		tmp = purple_notify_user_info_get_text_with_newline(user_info, "\n");
 		g_string_append(str, tmp);