summaryrefslogtreecommitdiff
path: root/protocols/Tox
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-09-08 17:08:59 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-09-08 17:08:59 +0000
commit599dcc0d0635bed564501fdf62a48ae20c260045 (patch)
tree79f9476d9c6c47f0c2fec504ebc8dd249d397a99 /protocols/Tox
parent1e42c0c9226a914f18c027aab8c6a711d43189f7 (diff)
Tox: fix previous commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@15308 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox')
-rw-r--r--protocols/Tox/src/tox_messages.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/protocols/Tox/src/tox_messages.cpp b/protocols/Tox/src/tox_messages.cpp
index e2ff4534b2..00e928f168 100644
--- a/protocols/Tox/src/tox_messages.cpp
+++ b/protocols/Tox/src/tox_messages.cpp
@@ -64,20 +64,6 @@ int CToxProto::OnSendMessage(MCONTACT hContact, const char *szMessage)
if (friendNumber == UINT32_MAX)
return 0;
- TOX_ERR_FRIEND_QUERY queryError;
- TOX_CONNECTION connection = tox_friend_get_connection_status(tox, friendNumber, &queryError);
- if (queryError == TOX_ERR_FRIEND_QUERY_OK)
- {
- debugLogA(__FUNCTION__": failed to get connection status for %d (%d)", friendNumber, queryError);
- return 0;
- }
-
- if (connection == TOX_CONNECTION_NONE)
- {
- ProtoBroadcastAck(hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, NULL, (LPARAM)Translate("You cannot send when contact is offline."));
- return 0;
- }
-
size_t msgLen = mir_strlen(szMessage);
uint8_t *msg = (uint8_t*)szMessage;
TOX_MESSAGE_TYPE type = TOX_MESSAGE_TYPE_NORMAL;