diff options
author | George Hazan <ghazan@miranda.im> | 2019-03-25 11:11:23 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-03-25 11:11:23 +0300 |
commit | feb9848d61c130e50e472b0578ec026e0c2b077a (patch) | |
tree | 512ae2cb0c589832a21c17590bf0a145aa3e0b14 /protocols | |
parent | f0b6f207b31b8791cf42dacbffa7233becd3d73d (diff) |
ICQ-WIN: if contact's nick is missing, try to copy it from IcqNick field
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/ICQ-WIM/src/server.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); |