diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-09 17:56:04 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-09 17:56:04 +0000 |
commit | d27c33b4acd678adee5024bf3eab3dad1c72b292 (patch) | |
tree | ce1d03d29137aa85cee3925261165d67f19c4cc4 /protocols/SkypeWeb/src | |
parent | ce1b2fb2381672cbbc17876436f7b098474205fb (diff) |
SkypeWeb: Add debugLog lines.
git-svn-id: http://svn.miranda-ng.org/main/trunk@12713 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src')
-rw-r--r-- | protocols/SkypeWeb/src/skype_messages.cpp | 3 | ||||
-rw-r--r-- | protocols/SkypeWeb/src/skype_poll_processing.cpp | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp index ed90a8ec3a..eaffc50640 100644 --- a/protocols/SkypeWeb/src/skype_messages.cpp +++ b/protocols/SkypeWeb/src/skype_messages.cpp @@ -112,6 +112,9 @@ int CSkypeProto::OnSendMessage(MCONTACT hContact, int flags, const char *szMessa ptrA server(getStringA("Server"));
ptrA token(getStringA("registrationToken"));
ptrA username(getStringA(hContact, "Skypename"));
+
+ debugLogA(__FUNCTION__ " clientmsgid = %d", param->hMessage);
+
if (strncmp(message, "/me ", 4) == 0)
PushRequest(new SendActionRequest(token, username, param->hMessage, &message[4], server), &CSkypeProto::OnMessageSent, param);
else
diff --git a/protocols/SkypeWeb/src/skype_poll_processing.cpp b/protocols/SkypeWeb/src/skype_poll_processing.cpp index 806e25430d..1513993cde 100644 --- a/protocols/SkypeWeb/src/skype_poll_processing.cpp +++ b/protocols/SkypeWeb/src/skype_poll_processing.cpp @@ -134,9 +134,11 @@ void CSkypeProto::ProcessNewMessageRes(JSONNODE *node) hContact = GetContact(ptrA(ContactUrlToName(conversationLink)));
int hMessage = atoi(clientMsgId);
ProtoBroadcastAck(hContact, ACKTYPE_MESSAGE, ACKRESULT_SUCCESS, (HANDLE)hMessage, 0);
+ debugLogA(__FUNCTION__" timestamp = %d clientmsgid = %s", timestamp, clientMsgId);
AddMessageToDb(hContact, timestamp, DBEF_UTF | DBEF_SENT, clientMsgId, &content[emoteOffset], emoteOffset);
return;
}
+ debugLogA(__FUNCTION__" timestamp = %d clientmsgid = %s", timestamp, clientMsgId);
OnReceiveMessage(clientMsgId, from, timestamp, content, emoteOffset);
}
else if (!mir_strcmpi(messageType, "Event/SkypeVideoMessage"))
|