adium-1.3 336:6917943c38c4: Never notify for 0 emails.

commits at adium.im commits at adium.im
Sun May 17 18:37:55 UTC 2009


details:	http://hg.adium.im/adium-1.3/rev/6917943c38c4
revision:	336:6917943c38c4
author:		Zachary West <zacw at adium.im>
date:		Sun May 17 14:36:43 2009 -0400

Never notify for 0 emails.

diffstat:

 Plugins/Purple Service/adiumPurpleNotify.m |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 964a5b4bb5a8 -r 6917943c38c4 Plugins/Purple Service/adiumPurpleNotify.m
--- a/Plugins/Purple Service/adiumPurpleNotify.m	Sat May 16 16:33:28 2009 -0400
+++ b/Plugins/Purple Service/adiumPurpleNotify.m	Sun May 17 14:36:43 2009 -0400
@@ -36,6 +36,10 @@
 
 static void *adiumPurpleNotifyEmails(PurpleConnection *gc, size_t count, gboolean detailed, const char **subjects, const char **froms, const char **tos, const char **urls)
 {
+	// Don't notify that 0 emails are present.
+	if (!count)
+		return NULL;
+	
     //Values passed can be null
 	AIAccount	*account = (PURPLE_CONNECTION_IS_VALID(gc) ?
 							accountLookup(purple_connection_get_account(gc)) :




More information about the commits mailing list