From 083471eb212e87fac834638fbc49787bba0c4678 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 6 Mar 2021 13:55:18 +0300 Subject: less shit with this "(Unknown contact)" --- plugins/Msg_Export/src/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Msg_Export/src') diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp index 425e4d3bee..4e91949a22 100755 --- a/plugins/Msg_Export/src/utils.cpp +++ b/plugins/Msg_Export/src/utils.cpp @@ -349,7 +349,7 @@ wstring GetFilePathFromUser(MCONTACT hContact) // Here we will try to avoid the (Unknown contact) in cases where the protocol for // this user has been removed. - if (bNickUsed && (wcsstr(Clist_GetContactDisplayName(hContact), TranslateT("(Unknown contact)")) != nullptr)) + if (bNickUsed && Clist_GetContactDisplayName(hContact, GCDNF_NOMYHANDLE) == nullptr) return sPrevFileName; // Then the filename must have changed from a correct path to one including the (Unknown contact) // file name has changed -- cgit v1.2.3