From fe1e8456d2488095f409a4f2d38b7251abdedccf Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 12 Sep 2016 19:42:43 +0000 Subject: Tox: attempt to fix addind a buddy using Toxme.io git-svn-id: http://svn.miranda-ng.org/main/trunk@17290 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_contacts.cpp | 4 ++-- protocols/Tox/src/tox_proto.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Tox/src') diff --git a/protocols/Tox/src/tox_contacts.cpp b/protocols/Tox/src/tox_contacts.cpp index 5abda14238..63091d2408 100644 --- a/protocols/Tox/src/tox_contacts.cpp +++ b/protocols/Tox/src/tox_contacts.cpp @@ -185,12 +185,12 @@ INT_PTR CToxProto::OnRequestAuth(WPARAM hContact, LPARAM lParam) db_unset(hContact, "CList", "NotOnList"); delSetting(hContact, "Grant"); - uint8_t nick[TOX_MAX_NAME_LENGTH] = { 0 }; + /*uint8_t nick[TOX_MAX_NAME_LENGTH] = { 0 }; TOX_ERR_FRIEND_QUERY errorFriendQuery; if (tox_friend_get_name(toxThread->Tox(), friendNumber, nick, &errorFriendQuery)) setWString(hContact, "Nick", ptrW(mir_utf8decodeW((char*)nick))); else - debugLogA(__FUNCTION__": failed to get friend name (%d)", errorFriendQuery); + debugLogA(__FUNCTION__": failed to get friend name (%d)", errorFriendQuery);*/ return 0; } diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index 9ae714bd31..d249a59a86 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -73,7 +73,7 @@ MCONTACT CToxProto::AddToList(int flags, PROTOSEARCHRESULT *psr) ShowNotification(TranslateT("Contact already in your contact list"), 0, hContact); return NULL; } - return AddContact(psr->id.a, psr->nick.a, psr->email.a, flags & PALF_TEMPORARY); + return AddContact(T2Utf(psr->id.w), T2Utf(psr->nick.w), T2Utf(psr->email.w), flags & PALF_TEMPORARY); } int CToxProto::Authorize(MEVENT hDbEvent) -- cgit v1.2.3