Mercurial > pidgin
comparison src/prpl.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 | 43e396e94095 |
| children | 89b56ab2b692 |
comparison
equal
deleted
inserted
replaced
| 4000:4f03d0c4fb4d | 4001:9178da61c19f |
|---|---|
| 448 mailnots = g_slist_append(mailnots, mn); | 448 mailnots = g_slist_append(mailnots, mn); |
| 449 } | 449 } |
| 450 | 450 |
| 451 if (count < 0) { | 451 if (count < 0) { |
| 452 if (from && subject) | 452 if (from && subject) |
| 453 g_snprintf(buf, sizeof buf, "%s has mail from %s: %s", gc->username, from, subject); | 453 g_snprintf(buf, sizeof buf, "%s has mail from %s: %s", gc->username, from, *subject ? subject : _("No Subject")); |
| 454 else | 454 else |
| 455 g_snprintf(buf, sizeof buf, "%s has new mail.", gc->username); | 455 g_snprintf(buf, sizeof buf, "%s has new mail.", gc->username); |
| 456 } else if (count > 0) { | 456 } else if (count > 0) { |
| 457 g_snprintf(buf, sizeof buf, "%s has %d new message%s.", | 457 g_snprintf(buf, sizeof buf, "%s has %d new message%s.", |
| 458 gc->username, count, count == 1 ? "" : "s"); | 458 gc->username, count, count == 1 ? "" : "s"); |
