From 8635f4f728473b81a6f055813e25eaba3c4c5ce8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 20 Sep 2018 22:25:21 +0300 Subject: creepy crutch removed that was adding message ids after the binary zero in message text --- protocols/JabberG/src/jabber_proto.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/JabberG/src/jabber_proto.cpp') diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp index 30c33ed266..48575d97d9 100755 --- a/protocols/JabberG/src/jabber_proto.cpp +++ b/protocols/JabberG/src/jabber_proto.cpp @@ -809,10 +809,10 @@ HANDLE CJabberProto::SearchByName(const wchar_t *nick, const wchar_t *firstName, MEVENT CJabberProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT *evt) { - T2Utf szResUtf((const wchar_t *)evt->lParam); - evt->pCustomData = (char*)szResUtf; - evt->cbCustomDataSize = (DWORD)mir_strlen(szResUtf); - return CSuper::RecvMsg(hContact, evt); + MEVENT hDbEvent = CSuper::RecvMsg(hContact, evt); + if (hDbEvent != 0 && evt->lParam) + db_event_setId(m_szModuleName, hDbEvent, T2Utf((const wchar_t *)evt->lParam)); + return hDbEvent; } //////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3