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_chatrooms.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_chatrooms.cpp')
-rw-r--r-- | protocols/Tox/src/tox_chatrooms.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Tox/src/tox_chatrooms.cpp b/protocols/Tox/src/tox_chatrooms.cpp index cff9447d84..0ae894be98 100644 --- a/protocols/Tox/src/tox_chatrooms.cpp +++ b/protocols/Tox/src/tox_chatrooms.cpp @@ -49,7 +49,7 @@ void CToxProto::LoadChatRoomList(void*) uint32_t count = tox_count_chatlist(toxThread->tox);
if (count == 0)
{
- debugLogA("CToxProto::LoadGroupChatList: your group chat list is empty");
+ logger->Log("CToxProto::LoadGroupChatList: your group chat list is empty");
return;
}
int32_t *groupChats = (int32_t*)mir_alloc(count * sizeof(int32_t));
@@ -189,21 +189,21 @@ void CToxProto::OnGroupChatInvite(Tox *tox, int32_t friendNumber, uint8_t type, if (type == TOX_GROUPCHAT_TYPE_AV)
{
- proto->debugLogA("CToxProto::OnGroupChatInvite: audio chat is not supported yet");
+ proto->logger->Log("CToxProto::OnGroupChatInvite: audio chat is not supported yet");
return;
}
int groupNumber = tox_join_groupchat(tox, friendNumber, data, length);
if (groupNumber == TOX_ERROR)
{
- proto->debugLogA("CToxProto::OnFriendRequest: failed to join to group chat");
+ proto->logger->Log("CToxProto::OnFriendRequest: failed to join to group chat");
return;
}
MCONTACT hContact = proto->AddChatRoom(groupNumber);
if (!hContact)
{
- proto->debugLogA("CToxProto::OnFriendRequest: failed to create group chat");
+ proto->logger->Log("CToxProto::OnFriendRequest: failed to create group chat");
}
}
|