From 599dcc0d0635bed564501fdf62a48ae20c260045 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Tue, 8 Sep 2015 17:08:59 +0000 Subject: Tox: fix previous commit git-svn-id: http://svn.miranda-ng.org/main/trunk@15308 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_messages.cpp | 14 -------------- 1 file changed, 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; -- cgit v1.2.3