diff src/protocols/yahoo/yahoo.c @ 4001:9178da61c19f

[gaim-migrate @ 4201] fix bug where logging in to yahoo causes a blank new mail notification (thanks ZuperDee and faceprint) committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 26 Nov 2002 14:13:11 +0000
parents 3fdfe7872118
children 133cf6424c53
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c	Mon Nov 25 23:44:20 2002 +0000
+++ b/src/protocols/yahoo/yahoo.c	Tue Nov 26 14:13:11 2002 +0000
@@ -685,11 +685,11 @@
 		l = l->next;
 	}
 
-	if (who && email && subj) {
+	if (who && subj && email && *email) {
 		char *from = g_strdup_printf("%s (%s)", who, email);
 		connection_has_mail(gc, -1, from, subj, "http://mail.yahoo.com/");
 		g_free(from);
-	} else
+	} else if (count > 0)
 		connection_has_mail(gc, count, NULL, NULL, "http://mail.yahoo.com/");
 }
 /* This is the y64 alphabet... it's like base64, but has a . and a _ */