diff options
Diffstat (limited to 'protocols/Tox/src/tox_account.cpp')
-rw-r--r-- | protocols/Tox/src/tox_account.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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<uint8_t> 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()
|