diff options
Diffstat (limited to 'protocols/Tox/src/tox_account.cpp')
-rw-r--r-- | protocols/Tox/src/tox_account.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_account.cpp b/protocols/Tox/src/tox_account.cpp index 9c59965bc7..c63328f6ac 100644 --- a/protocols/Tox/src/tox_account.cpp +++ b/protocols/Tox/src/tox_account.cpp @@ -45,9 +45,22 @@ void CToxProto::ConnectionThread(void*) {
DoBootstrap();
+ uint8_t name[TOX_MAX_NAME_LENGTH + 1];
+ uint16_t namelen = tox_get_self_name(tox, name);
+ name[namelen] = 0;
+
if (tox_isconnected(tox))
{
isConnected = true;
+
+ char dataPath[MAX_PATH];
+ mir_snprintf(dataPath, MAX_PATH, "%s\\%s.tox", VARS("%miranda_profile%\\%miranda_profilename%"), m_tszUserName);
+
+ SaveToxData(dataPath);
+
+ char idstring3[200] = { 0 };
+ get_id(tox, idstring3);
+
break;
}
|