summaryrefslogtreecommitdiff
path: root/protocols/MRA/Mra_proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-09-16 16:18:46 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-09-16 16:18:46 +0000
commit7eb813e28f5b94886487cfd6e3c916eeb96c8dee (patch)
tree78ac2b8f99608779ebe274a19f95e2e91f553d12 /protocols/MRA/Mra_proto.cpp
parent39c4a49dbfa7fd2e7bce9b7c56c91dceae726542 (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/Mra_proto.cpp')
-rw-r--r--protocols/MRA/Mra_proto.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/MRA/Mra_proto.cpp b/protocols/MRA/Mra_proto.cpp
index 91ac4f9d0e..638f61d8f0 100644
--- a/protocols/MRA/Mra_proto.cpp
+++ b/protocols/MRA/Mra_proto.cpp
@@ -386,6 +386,8 @@ DWORD CMraProto::MraCommandDispatcher(mrim_packet_header_t *pmaHeader, DWORD *pd
lpbDataCurrent = lpbData;
dwDataSize = pmaHeader->dlen;
+ Netlib_Logf(hNetlibUser, "Received packet %x\n", pmaHeader->msg);
+
switch (pmaHeader->msg) {
case MRIM_CS_HELLO_ACK://Подтверждение установки соединения// UL ## ping_period ## Ожидаемая частота подтверждения соединения (в секундах)
//bit of a security hole here, since it's easy to extract a password from an edit box
@@ -1874,6 +1876,8 @@ DWORD CMraProto::MraRecvCommand_Message(DWORD dwTime, DWORD dwFlags, MRA_LPS *pl
}
}
+ Netlib_Logf(hNetlibUser, "Processing message: %08X, from '%s', text '%S'\n", dwFlags, plpsFrom->lpszData, lpwszMessage);
+
// processing
if (dwRetErrorCode == NO_ERROR)
if (MraAntiSpamReceivedMessageW(plpsFrom->lpszData, plpsFrom->dwSize, dwFlags, lpwszMessage, dwMessageSize) == MESSAGE_NOT_SPAM) {