diff options
author | George Hazan <ghazan@miranda.im> | 2021-03-06 13:55:18 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-03-06 13:55:18 +0300 |
commit | 083471eb212e87fac834638fbc49787bba0c4678 (patch) | |
tree | 55f0dd0b9812780b77346a5cd6c8d34ab2415f99 /plugins/IEView/src/HTMLBuilder.cpp | |
parent | 90addbcbfc72fa396cf2fe89f245dbb0f7a14513 (diff) |
less shit with this "(Unknown contact)"
Diffstat (limited to 'plugins/IEView/src/HTMLBuilder.cpp')
-rw-r--r-- | plugins/IEView/src/HTMLBuilder.cpp | 9 |
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)
|