diff options
author | George Hazan <ghazan@miranda.im> | 2018-09-20 22:25:21 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-09-20 22:25:21 +0300 |
commit | 8635f4f728473b81a6f055813e25eaba3c4c5ce8 (patch) | |
tree | 289ae2168d3c7e473431a960804b24ae03fa8c66 /protocols/JabberG | |
parent | 8d5867276a766c5447e4d4489f4649d7fb04ab72 (diff) |
creepy crutch removed that was adding message ids after the binary zero in message text
Diffstat (limited to 'protocols/JabberG')
-rwxr-xr-x | protocols/JabberG/src/jabber_proto.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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;
}
////////////////////////////////////////////////////////////////////////////////////////
|