diff options
author | aunsane <aunsane@gmail.com> | 2018-09-02 20:29:34 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-09-02 20:29:57 +0300 |
commit | 28a99f693df34c9c789bf5181893589bab9e1b1b (patch) | |
tree | 603b059a7313257742dda5bdfe9b2ba25cd9f175 | |
parent | 085ee13dba698f32bd95e43e15f6a5364ffa8213 (diff) |
Tox: add address to nick if it absent
-rw-r--r-- | protocols/Tox/src/tox_contacts.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_contacts.cpp b/protocols/Tox/src/tox_contacts.cpp index 0954745f34..7945b7eeb6 100644 --- a/protocols/Tox/src/tox_contacts.cpp +++ b/protocols/Tox/src/tox_contacts.cpp @@ -85,6 +85,8 @@ MCONTACT CToxProto::AddContact(const char *address, const char *nick, const char if (mir_strlen(nick))
setWString(hContact, "Nick", ptrW(mir_utf8decodeW(nick)));
+ else
+ setWString(hContact, "Nick", _A2T(address));
if (mir_strlen(dnsId))
setWString(hContact, TOX_SETTINGS_DNS, ptrW(mir_utf8decodeW(dnsId)));
|