adium 2226:75729afc39a1: Never notify for 0 emails.

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


details:	http://hg.adium.im/adium/rev/75729afc39a1
revision:	2226:75729afc39a1
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 f5e11f50e7b9 -r 75729afc39a1 Plugins/Purple Service/adiumPurpleNotify.m
--- a/Plugins/Purple Service/adiumPurpleNotify.m	Sun May 17 11:25:09 2009 -0700
+++ 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