summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src/poll.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/ICQ-WIM/src/poll.cpp')
-rw-r--r--protocols/ICQ-WIM/src/poll.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/ICQ-WIM/src/poll.cpp b/protocols/ICQ-WIM/src/poll.cpp
index eaf477f384..8c0147bca8 100644
--- a/protocols/ICQ-WIM/src/poll.cpp
+++ b/protocols/ICQ-WIM/src/poll.cpp
@@ -220,7 +220,8 @@ void CIcqProto::ProcessNotification(const JSONNode &ev)
m_szMailBox = (*root)["email"].as_mstring();
m_unreadEmails = (*root)["unreadCount"].as_int();
- if (m_unreadEmails > 0) {
+ // we notify about initial mail count only during login
+ if (m_bFirstBos && m_unreadEmails > 0) {
CMStringW wszMessage(FORMAT, TranslateT("You have %d unread emails"), m_unreadEmails);
EmailNotification(wszMessage);
}