diff options
author | George Hazan <george.hazan@gmail.com> | 2012-09-16 16:18:46 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-09-16 16:18:46 +0000 |
commit | 7eb813e28f5b94886487cfd6e3c916eeb96c8dee (patch) | |
tree | 78ac2b8f99608779ebe274a19f95e2e91f553d12 /protocols/MRA/MraSendCommand.cpp | |
parent | 39c4a49dbfa7fd2e7bce9b7c56c91dceae726542 (diff) |
- fix for double auth req
- packet logging added
git-svn-id: http://svn.miranda-ng.org/main/trunk@1581 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/MraSendCommand.cpp')
-rw-r--r-- | protocols/MRA/MraSendCommand.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/MRA/MraSendCommand.cpp b/protocols/MRA/MraSendCommand.cpp index f192afe889..2d56edb6b7 100644 --- a/protocols/MRA/MraSendCommand.cpp +++ b/protocols/MRA/MraSendCommand.cpp @@ -67,6 +67,8 @@ static void SetLPSLowerCaseW(LPBYTE *plpBuff, LPCWSTR lpwszData, DWORD dwSize) DWORD CMraProto::MraMessageW(BOOL bAddToQueue, HANDLE hContact, DWORD dwAckType, DWORD dwFlags, LPSTR lpszEMail, size_t dwEMailSize, LPCWSTR lpwszMessage, size_t dwMessageSize, LPBYTE lpbMultiChatData, size_t dwMultiChatDataSize)
{
+ Netlib_Logf(hNetlibUser, "Sending message: flags %08x, to '%S', message '%S'\n", dwFlags, lpszEMail, lpwszMessage);
+
DWORD dwRet = 0;
LPBYTE lpbData, lpbDataCurrent;
LPSTR lpszMessageConverted = (LPSTR)lpwszMessage;
@@ -661,6 +663,8 @@ DWORD CMraProto::MraSendPacket(HANDLE hConnection, DWORD dwCMDNum, DWORD dwType, pmaHeader->msg = dwType;// Тип пакета
pmaHeader->dlen = dwDataSize;// Длина данных
+ Netlib_Logf(hNetlibUser, "Sending packet %08x\n", dwType);
+
memmove((lpbData+sizeof(mrim_packet_header_t)), lpData, dwDataSize);
dwRet = Netlib_Send(hConnection, (LPSTR)lpbData, (dwDataSize+sizeof(mrim_packet_header_t)), 0);
mir_free(lpbData);
|