From 44525f461757fc859616fda16820351b07238842 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 27 Jun 2019 21:23:35 +0300 Subject: manual access to CList/Group restricted --- protocols/Tox/src/tox_contacts.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'protocols/Tox/src') diff --git a/protocols/Tox/src/tox_contacts.cpp b/protocols/Tox/src/tox_contacts.cpp index 082c6c9019..ea388e0748 100644 --- a/protocols/Tox/src/tox_contacts.cpp +++ b/protocols/Tox/src/tox_contacts.cpp @@ -92,8 +92,7 @@ MCONTACT CToxProto::AddContact(const char *address, const wchar_t *nick, const w setWString(hContact, TOX_SETTINGS_DNS, dnsId); if (!isTemporary) { - if (m_defaultGroup) - db_set_ws(hContact, "CList", "Group", m_defaultGroup); + Clist_SetGroup(hContact, m_defaultGroup); setByte(hContact, "Auth", 1); setByte(hContact, "Grant", 1); -- cgit v1.2.3