Mercurial > pidgin
comparison libpurple/protocols/msn/oim.c @ 21767:7ac87187bbec
Don't show a 'you ain't got no new mail' notification.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 04 Dec 2007 22:20:18 +0000 |
parents | aa875e77e5ce |
children | 7d3b2c023ad8 75be80ddeca5 |
comparison
equal
deleted
inserted
replaced
21766:8c1bcaaaac34 | 21767:7ac87187bbec |
---|---|
486 if (iu_node != NULL && purple_account_get_check_mail(session->account)) | 486 if (iu_node != NULL && purple_account_get_check_mail(session->account)) |
487 { | 487 { |
488 char *unread = xmlnode_get_data(iu_node); | 488 char *unread = xmlnode_get_data(iu_node); |
489 const char *passport = msn_user_get_passport(session->user); | 489 const char *passport = msn_user_get_passport(session->user); |
490 const char *url = session->passport_info.file; | 490 const char *url = session->passport_info.file; |
491 int count = atoi(unread); | |
491 | 492 |
492 /* XXX/khc: pretty sure this is wrong */ | 493 /* XXX/khc: pretty sure this is wrong */ |
493 purple_notify_emails(session->account->gc, atoi(unread), FALSE, NULL, | 494 if (count > 0) |
494 NULL, &passport, &url, NULL, NULL); | 495 purple_notify_emails(session->account->gc, count, FALSE, NULL, |
496 NULL, &passport, &url, NULL, NULL); | |
495 g_free(unread); | 497 g_free(unread); |
496 } | 498 } |
497 | 499 |
498 for(mNode = xmlnode_get_child(node, "M"); mNode; | 500 for(mNode = xmlnode_get_child(node, "M"); mNode; |
499 mNode = xmlnode_get_next_twin(mNode)){ | 501 mNode = xmlnode_get_next_twin(mNode)){ |