diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2014-02-27 22:56:05 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2014-02-27 22:56:05 +0000 |
commit | 37a8259023eb4e112a271a5122f356bee6bf24b1 (patch) | |
tree | c55f557f6f5f8776e20784e96bcb35b100d66083 /protocols/GTalkExt/src | |
parent | 82034484f38eb6a9906c75a9314461c11f17b157 (diff) |
cosmetic fix for receifing emails from contacts without a name
git-svn-id: http://svn.miranda-ng.org/main/trunk@8322 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/GTalkExt/src')
-rw-r--r-- | protocols/GTalkExt/src/notifications.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/GTalkExt/src/notifications.cpp b/protocols/GTalkExt/src/notifications.cpp index ba527abe5e..d3405bf677 100644 --- a/protocols/GTalkExt/src/notifications.cpp +++ b/protocols/GTalkExt/src/notifications.cpp @@ -270,7 +270,10 @@ void UnreadThreadNotification(LPCSTR acc, LPCTSTR jid, LPCTSTR url, LPCTSTR unre LPTSTR currSender = senders;
for (int i = 0; i < SENDER_COUNT && mtn->senders[i].addr; i++) {
- mir_sntprintf(currSender, SENDER_COUNT * 100, _T(" %s <%s>\n"), mtn->senders[i].name, mtn->senders[i].addr);
+ if (mtn->senders[i].name)
+ mir_sntprintf(currSender, SENDER_COUNT * 100, _T(" %s <%s>\n"), mtn->senders[i].name, mtn->senders[i].addr);
+ else
+ mir_sntprintf(currSender, SENDER_COUNT * 100, _T(" %s\n"), mtn->senders[i].addr);
currSender += lstrlen(currSender);
}
|