diff libpurple/notify.c @ 20586:04590d9db8b7

Clear out the mail notifications for an account when we receive a notification of 0 emails.
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 21 Sep 2007 00:53:41 +0000
parents 6bf32c9e15a7
children dd0878ccc577
line wrap: on
line diff
--- a/libpurple/notify.c	Fri Sep 21 00:32:33 2007 +0000
+++ b/libpurple/notify.c	Fri Sep 21 00:53:41 2007 +0000
@@ -150,8 +150,6 @@
 {
 	PurpleNotifyUiOps *ops;
 
-	g_return_val_if_fail(count != 0, NULL);
-
 	if (count == 1) {
 		return purple_notify_email(handle,
 								 (subjects == NULL ? NULL : *subjects),
@@ -506,7 +504,7 @@
 	g_return_if_fail(user_info_entry != NULL);
 	
 	g_free(user_info_entry->label);
-	g_free(user_info_entry->value);	
+	g_free(user_info_entry->value);
 	PURPLE_DBUS_UNREGISTER_POINTER(user_info_entry);
 	g_free(user_info_entry);
 }
@@ -568,7 +566,7 @@
 		if (user_info_entry->label && user_info_entry->value)
 			g_string_append(text, ": ");
 		if (user_info_entry->value)
-			g_string_append(text, user_info_entry->value);			
+			g_string_append(text, user_info_entry->value);
 
 		/* Display a section break as a horizontal line */
 		if (user_info_entry->type == PURPLE_NOTIFY_USER_INFO_ENTRY_SECTION_BREAK)