summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2014-02-27 22:56:05 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2014-02-27 22:56:05 +0000
commit37a8259023eb4e112a271a5122f356bee6bf24b1 (patch)
treec55f557f6f5f8776e20784e96bcb35b100d66083
parent82034484f38eb6a9906c75a9314461c11f17b157 (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
-rw-r--r--protocols/GTalkExt/src/notifications.cpp5
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);
}