From 37a8259023eb4e112a271a5122f356bee6bf24b1 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 27 Feb 2014 22:56:05 +0000 Subject: 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 --- protocols/GTalkExt/src/notifications.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3