From 1a3d8165a7ea32cb104cbcc0509101f809e6e6a0 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sat, 30 May 2015 20:55:00 +0000 Subject: Tox: contacts search/add improvements git-svn-id: http://svn.miranda-ng.org/main/trunk@13914 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_proto.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols/Tox/src/tox_proto.cpp') diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index 0e7d157c45..c9762e2360 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -75,8 +75,9 @@ MCONTACT CToxProto::AddToList(int flags, PROTOSEARCHRESULT *psr) ShowNotification(TranslateT("Contact already in your contact list"), 0, hContact); return NULL; } + ptrT nick(mir_tstrdup(psr->nick)); ptrT dnsId(mir_tstrdup(psr->email)); - return AddContact(address, dnsId, flags & PALF_TEMPORARY); + return AddContact(address, nick, dnsId, flags & PALF_TEMPORARY); } int CToxProto::Authorize(MEVENT hDbEvent) -- cgit v1.2.3