summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_account.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-08-18 20:17:45 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-08-18 20:17:45 +0000
commit87204c540590feeba783f40319d4a503b9f325f5 (patch)
tree60f3cee948264d9edd06958a15bb2e0b333deda1 /protocols/Tox/src/tox_account.cpp
parent108d975c5775d83357c735541ee5e711c27f092a (diff)
Tox:
- added profile manager on first run - reworked options git-svn-id: http://svn.miranda-ng.org/main/trunk@10231 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_account.cpp')
-rw-r--r--protocols/Tox/src/tox_account.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/protocols/Tox/src/tox_account.cpp b/protocols/Tox/src/tox_account.cpp
index f78f8b24a2..6ca734d0e4 100644
--- a/protocols/Tox/src/tox_account.cpp
+++ b/protocols/Tox/src/tox_account.cpp
@@ -1,11 +1,6 @@
#include "common.h"
#include "tox_bootstrap.h"
-bool CToxProto::IsOnline()
-{
- return isConnected && m_iStatus > ID_STATUS_OFFLINE;
-}
-
void CToxProto::InitToxCore()
{
Tox_Options options = { 0 };
@@ -21,7 +16,7 @@ void CToxProto::InitToxCore()
{
if (nlus.proxyType == PROXYTYPE_SOCKS4 || nlus.proxyType == PROXYTYPE_SOCKS5)
{
- debugLogA("Setting socks user proxy config");
+ debugLogA("CToxProto::InitToxCore: Setting socks user proxy config");
options.proxy_enabled = 1;
strcpy(&options.proxy_address[0], nlus.szProxyServer);
options.proxy_port = nlus.wProxyPort;
@@ -50,13 +45,15 @@ void CToxProto::InitToxCore()
void CToxProto::UninitToxCore()
{
- isTerminated = isConnected = false;
-
SaveToxData();
-
tox_kill(tox);
}
+bool CToxProto::IsOnline()
+{
+ return isConnected && m_iStatus > ID_STATUS_OFFLINE;
+}
+
void CToxProto::DoBootstrap()
{
static int j = 0;