summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_contacts.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-01-07 21:40:06 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-01-07 21:40:06 +0000
commit4cf5a9ef45a6f6172e93c1f84bcbab22be00e0a4 (patch)
tree320b0e8f323ac90bb22e9a792bf5ecc25d7a1cf6 /protocols/Tox/src/tox_contacts.cpp
parent6c61dc812b9a5382c282f3e61111516fff562c0e (diff)
Tox: enabled profile encryption
git-svn-id: http://svn.miranda-ng.org/main/trunk@11790 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_contacts.cpp')
-rw-r--r--protocols/Tox/src/tox_contacts.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_contacts.cpp b/protocols/Tox/src/tox_contacts.cpp
index 48c0de0274..110480ed8c 100644
--- a/protocols/Tox/src/tox_contacts.cpp
+++ b/protocols/Tox/src/tox_contacts.cpp
@@ -166,6 +166,11 @@ void CToxProto::LoadFriendList()
int CToxProto::OnContactDeleted(MCONTACT hContact, LPARAM lParam)
{
+ if (!IsOnline())
+ {
+ return 1;
+ }
+
std::string id = getStringA(hContact, TOX_SETTINGS_ID);
std::vector<uint8_t> clientId = HexStringToData(id);
@@ -175,8 +180,6 @@ int CToxProto::OnContactDeleted(MCONTACT hContact, LPARAM lParam)
return 1;
}
- SaveToxProfile();
-
return 0;
}