summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/ICQ-WIM/src/server.cpp')
-rw-r--r--protocols/ICQ-WIM/src/server.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp
index a89af9c2f0..96920310f9 100644
--- a/protocols/ICQ-WIM/src/server.cpp
+++ b/protocols/ICQ-WIM/src/server.cpp
@@ -416,8 +416,10 @@ void CIcqProto::ParseMessage(MCONTACT hContact, __int64 &lastMsgId, const JSONNo
// ignore duplicates
MEVENT hDbEvent = db_event_getById(m_szModuleName, szMsgId);
- if (hDbEvent != 0)
+ if (hDbEvent != 0) {
+ debugLogA("Message %s already exists", szMsgId.c_str());
return;
+ }
bool bIsOutgoing = it["outgoing"].as_bool();
if (!bFromHistory && !bIsOutgoing && wszText.Left(26) == L"https://files.icq.net/get/") {
@@ -438,6 +440,8 @@ void CIcqProto::ParseMessage(MCONTACT hContact, __int64 &lastMsgId, const JSONNo
return;
}
+ debugLogA("Adding message %d:%s (%d)", hContact, szMsgId.c_str(), bFromHistory);
+
ptrA szUtf(mir_utf8encodeW(wszText));
PROTORECVEVENT pre = {};