From 56c1f62b71e28b12e83e4ee7999461f73a3367fb Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Tue, 9 Sep 2014 19:52:07 +0000 Subject: Tox: id saves in db as blob at now git-svn-id: http://svn.miranda-ng.org/main/trunk@10412 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_account.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'protocols/Tox/src/tox_account.cpp') diff --git a/protocols/Tox/src/tox_account.cpp b/protocols/Tox/src/tox_account.cpp index e5305a9b2f..2e7a1d9904 100644 --- a/protocols/Tox/src/tox_account.cpp +++ b/protocols/Tox/src/tox_account.cpp @@ -65,8 +65,7 @@ void CToxProto::InitToxCore() std::vector address(TOX_FRIEND_ADDRESS_SIZE); tox_get_address(tox, &address[0]); - std::string toxId = DataToHexString(address); - setString(TOX_SETTINGS_ID, toxId.c_str()); + db_set_blob(NULL, m_szModuleName, TOX_SETTINGS_ID, (uint8_t*)address.data(), TOX_FRIEND_ADDRESS_SIZE); } void CToxProto::UninitToxCore() -- cgit v1.2.3