summaryrefslogtreecommitdiff
path: root/plugins/IEView/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/IEView/src')
-rw-r--r--plugins/IEView/src/HTMLBuilder.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/IEView/src/HTMLBuilder.cpp b/plugins/IEView/src/HTMLBuilder.cpp
index bb9aeae778..a0ad5d7528 100644
--- a/plugins/IEView/src/HTMLBuilder.cpp
+++ b/plugins/IEView/src/HTMLBuilder.cpp
@@ -167,17 +167,12 @@ wchar_t* HTMLBuilder::getContactName(MCONTACT hContact, const char *szProto)
if (str != nullptr)
return str;
- str = Clist_GetContactDisplayName(hContact);
- if (str != nullptr)
- return mir_wstrdup(str);
-
- return mir_wstrdup(TranslateT("(Unknown contact)"));
+ return mir_wstrdup(Clist_GetContactDisplayName(hContact));
}
char* HTMLBuilder::getEncodedContactName(MCONTACT hContact, const char *szProto)
{
- ptrW name(getContactName(hContact, szProto));
- return encodeUTF8(hContact, (name != NULL) ? name : TranslateT("(Unknown contact)"), ENF_NAMESMILEYS, true);
+ return encodeUTF8(hContact, ptrW(getContactName(hContact, szProto)), ENF_NAMESMILEYS, true);
}
void HTMLBuilder::appendEventNew(IEView *view, IEVIEWEVENT *event)