From 70fa6d15aa408ce82131d9e6c8eb4cc384f8e846 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 10 Aug 2014 19:07:29 +0000 Subject: 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 --- protocols/Tox/src/tox_account.cpp | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 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 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 -- cgit v1.2.3