summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_contacts.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-05-16 07:36:55 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-05-16 07:36:55 +0000
commit9f7ed03494fa22e194e3ee553f3778d68b7ae206 (patch)
tree82723009792acaddd15aeac0d036da28fb944e9f /protocols/Tox/src/tox_contacts.cpp
parent2a88f2274cd799a5478905e47d0f4d0e791440b4 (diff)
Tox: attempt to fix file resuming
git-svn-id: http://svn.miranda-ng.org/main/trunk@13613 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_contacts.cpp')
-rw-r--r--protocols/Tox/src/tox_contacts.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/protocols/Tox/src/tox_contacts.cpp b/protocols/Tox/src/tox_contacts.cpp
index 0cda5f4783..311f5d0ce8 100644
--- a/protocols/Tox/src/tox_contacts.cpp
+++ b/protocols/Tox/src/tox_contacts.cpp
@@ -9,17 +9,13 @@ void CToxProto::SetContactStatus(MCONTACT hContact, WORD status)
{
WORD oldStatus = GetContactStatus(hContact);
if (oldStatus != status)
- {
setWord(hContact, "Status", status);
- }
}
void CToxProto::SetAllContactsStatus(WORD status)
{
for (MCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName))
- {
SetContactStatus(hContact, status);
- }
}
MCONTACT CToxProto::GetContactFromAuthEvent(MEVENT hEvent)
@@ -62,9 +58,7 @@ MCONTACT CToxProto::GetContact(const char *pubKey)
ptrA contactPubKey(getStringA(hContact, TOX_SETTINGS_ID));
// check only public key part of address
if (strnicmp(pubKey, contactPubKey, TOX_PUBLIC_KEY_SIZE) == 0)
- {
break;
- }
}
return hContact;
}
@@ -80,9 +74,7 @@ MCONTACT CToxProto::AddContact(const char *address, const TCHAR *dnsId, bool isT
setString(hContact, TOX_SETTINGS_ID, address);
if (dnsId && mir_tstrlen(dnsId))
- {
setTString(hContact, TOX_SETTINGS_DNS, dnsId);
- }
DBVARIANT dbv;
if (!getTString(TOX_SETTINGS_GROUP, &dbv))
@@ -108,9 +100,7 @@ uint32_t CToxProto::GetToxFriendNumber(MCONTACT hContact)
TOX_ERR_FRIEND_BY_PUBLIC_KEY error;
uint32_t friendNumber = tox_friend_by_public_key(tox, pubKey, &error);
if (error != TOX_ERR_FRIEND_BY_PUBLIC_KEY_OK)
- {
debugLogA(__FUNCTION__": failed to get friend number (%d)", error);
- }
return friendNumber;
}