diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-09-10 13:39:26 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-09-10 13:39:26 +0000 |
commit | 9cbcc4a1234b3ad61110eb733ed8b154f8e3ff68 (patch) | |
tree | 2b98954bcd12c6bc3b0decebdd929bd5fe9e80fd /protocols/Tox/src/tox_messages.cpp | |
parent | 510f938a5c6f0ee95ac0b36e56aced065228298e (diff) |
Tox: refactoring
git-svn-id: http://svn.miranda-ng.org/main/trunk@15317 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_messages.cpp')
-rw-r--r-- | protocols/Tox/src/tox_messages.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Tox/src/tox_messages.cpp b/protocols/Tox/src/tox_messages.cpp index fe3b205b0b..6212ab91a4 100644 --- a/protocols/Tox/src/tox_messages.cpp +++ b/protocols/Tox/src/tox_messages.cpp @@ -77,7 +77,7 @@ int CToxProto::OnSendMessage(MCONTACT hContact, const char *szMessage) int messageId = tox_friend_send_message(toxThread->tox, friendNumber, type, msg, msgLen, &sendError);
if (sendError != TOX_ERR_FRIEND_SEND_MESSAGE_OK)
{
- debugLogA(__FUNCTION__": failed to send message for %d (%d)", friendNumber, sendError);
+ logger->Log(__FUNCTION__": failed to send message for %d (%d)", friendNumber, sendError);
return 0;
}
@@ -134,7 +134,7 @@ void CToxProto::GetStatusMessageAsync(void* arg) size_t size = tox_friend_get_status_message_size(toxThread->tox, friendNumber, &error);
if (error != TOX_ERR_FRIEND_QUERY::TOX_ERR_FRIEND_QUERY_OK)
{
- debugLogA(__FUNCTION__": failed to get status message for (%d) (%d)", friendNumber, error);
+ logger->Log(__FUNCTION__": failed to get status message for (%d) (%d)", friendNumber, error);
ProtoBroadcastAck(hContact, ACKTYPE_AWAYMSG, ACKRESULT_FAILED, (HANDLE)hContact, 0);
return;
}
@@ -142,7 +142,7 @@ void CToxProto::GetStatusMessageAsync(void* arg) ptrA statusMessage((char*)mir_calloc(size + 1));
if (!tox_friend_get_status_message(toxThread->tox, friendNumber, (uint8_t*)(char*)statusMessage, &error))
{
- debugLogA(__FUNCTION__": failed to get status message for (%d) (%d)", friendNumber, error);
+ logger->Log(__FUNCTION__": failed to get status message for (%d) (%d)", friendNumber, error);
ProtoBroadcastAck(hContact, ACKTYPE_AWAYMSG, ACKRESULT_FAILED, (HANDLE)hContact, 0);
return;
}
@@ -160,7 +160,7 @@ int CToxProto::OnUserIsTyping(MCONTACT hContact, int type) TOX_ERR_SET_TYPING error;
if (!tox_self_set_typing(toxThread->tox, friendNumber, type == PROTOTYPE_SELFTYPING_ON, &error))
- debugLogA(__FUNCTION__": failed to send typing (%d)", error);
+ logger->Log(__FUNCTION__": failed to send typing (%d)", error);
return 0;
}
|