summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_account.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-08-10 19:07:29 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-08-10 19:07:29 +0000
commit70fa6d15aa408ce82131d9e6c8eb4cc384f8e846 (patch)
treeab1eae8139b8a2bfd37cc7ddb007c3f6892aa26c /protocols/Tox/src/tox_account.cpp
parent7e5ea8ede78268b68b86f3f6d279deaf24593fb2 (diff)
Tox:
- fixed account manager page - added account options page - removed test code git-svn-id: http://svn.miranda-ng.org/main/trunk@10147 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_account.cpp')
-rw-r--r--protocols/Tox/src/tox_account.cpp19
1 files changed, 5 insertions, 14 deletions
diff --git a/protocols/Tox/src/tox_account.cpp b/protocols/Tox/src/tox_account.cpp
index a406d8d55c..33b1f4a8ed 100644
--- a/protocols/Tox/src/tox_account.cpp
+++ b/protocols/Tox/src/tox_account.cpp
@@ -45,21 +45,12 @@ 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%"), _T2A(m_tszUserName));
-
- SaveToxData(dataPath);
-
- char idstring3[200] = { 0 };
- get_id(tox, idstring3);
+
+ m_iStatus = m_iDesiredStatus = ID_STATUS_ONLINE;
+ ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)ID_STATUS_CONNECTING, m_iStatus);
break;
}
@@ -67,10 +58,10 @@ void CToxProto::ConnectionThread(void*)
DoTox();
}
+ debugLogA("CToxProto::ConnectionThread: leaving");
+
if (!isTerminated && isConnected)
{
poolingThread = ForkThreadEx(&CToxProto::PollingThread, 0, NULL);
}
-
- debugLogA("CToxProto::ConnectionThread: leaving");
} \ No newline at end of file