From feb9848d61c130e50e472b0578ec026e0c2b077a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 Mar 2019 11:11:23 +0300 Subject: ICQ-WIN: if contact's nick is missing, try to copy it from IcqNick field --- protocols/ICQ-WIM/src/server.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp index 27e813e940..29a8b8533d 100644 --- a/protocols/ICQ-WIM/src/server.cpp +++ b/protocols/ICQ-WIM/src/server.cpp @@ -283,6 +283,10 @@ MCONTACT CIcqProto::ParseBuddyInfo(const JSONNode &buddy, MCONTACT hContact) Json2string(hContact, profile, "lastName", "LastName"); Json2string(hContact, profile, "aboutMe", DB_KEY_ABOUT); + ptrW wszNick(getWStringA(hContact, "Nick")); + if (wszNick) + setWString(hContact, "Nick", profile["friendlyName"].as_mstring()); + time_t birthDate = profile["birthDate"].as_int(); if (birthDate != 0) { struct tm *timeinfo = localtime(&birthDate); -- cgit v1.2.3