summaryrefslogtreecommitdiff
path: root/protocols/Tox
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-09-02 20:29:34 +0300
committeraunsane <aunsane@gmail.com>2018-09-02 20:29:57 +0300
commit28a99f693df34c9c789bf5181893589bab9e1b1b (patch)
tree603b059a7313257742dda5bdfe9b2ba25cd9f175 /protocols/Tox
parent085ee13dba698f32bd95e43e15f6a5364ffa8213 (diff)
Tox: add address to nick if it absent
Diffstat (limited to 'protocols/Tox')
-rw-r--r--protocols/Tox/src/tox_contacts.cpp2
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)));