summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_proto.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-09-27 09:25:36 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-09-27 09:25:36 +0000
commit93467b8c3702be5fc9f9b60c3ff6863cb37ccd8d (patch)
tree23659d34af33a062ba60bd7cc5dcd176f3f23b3a /protocols/Tox/src/tox_proto.cpp
parente02a45507e91d072b86f26f36dbebf655ad9d79f (diff)
encrypt tox profile (dont't work, crashed on tox_encrypted_load)
git-svn-id: http://svn.miranda-ng.org/main/trunk@10612 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_proto.cpp')
-rw-r--r--protocols/Tox/src/tox_proto.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp
index 3016a400ee..0d3ab920f6 100644
--- a/protocols/Tox/src/tox_proto.cpp
+++ b/protocols/Tox/src/tox_proto.cpp
@@ -5,7 +5,8 @@ PROTO<CToxProto>(protoName, userName)
{
accountName = mir_tstrdup(userName);
- InitToxCore();
+ if (this->getStringA("ToxID"))
+ InitToxCore();
CreateProtoService(PS_CREATEACCMGRUI, &CToxProto::OnAccountManagerInit);