From 1d04c812fa182628596c89f7f092ee2bf928af9f Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Wed, 27 Oct 2010 21:19:48 +0300 Subject: modified: messages.cpp --- messages.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'messages.cpp') diff --git a/messages.cpp b/messages.cpp index 37d8458..a6a00f0 100644 --- a/messages.cpp +++ b/messages.cpp @@ -518,14 +518,14 @@ int SendMsgSvc(WPARAM w, LPARAM l) // hps->hContact = hContact; hcontact_data[hContact].msgs_to_ignore.push_back((char*)ccs->lParam); // msgs_to_ignore.push_back(hps); + hcontact_data[metaGetContact(hContact)].msgs_to_tag.push_back(str_event); if(bAppendTags) { str_event.insert(0, toUTF8(outopentag)); str_event.append(toUTF8(outclosetag)); } HistoryLog(hContact, (char*)str_event.c_str(), EVENTTYPE_MESSAGE, DBEF_SENT | DBEF_UTF); - HistoryLog(metaGetContact(hContact), (char*)str_event.c_str(), EVENTTYPE_MESSAGE, DBEF_SENT | DBEF_UTF); - hcontact_data[metaGetContact(hContact)].msgs_to_tag.push_back(str_event); + HistoryLog(metaGetContact(hContact), (char*)str_event.c_str(), EVENTTYPE_MESSAGE, DBEF_SENT | DBEF_UTF); // DBWriteContactSettingByte(metaGetContact(hContact), szGPGModuleName, "MsgsForTagging", DBGetContactSettingByte(metaGetContact(hContact), szGPGModuleName, "MsgsForTagging", 0) + 1); CallContactService(hContact, PSS_MESSAGE, (WPARAM)PREF_UTF, (LPARAM)toUTF8(str).c_str()); return returnNoError(hContact); @@ -585,6 +585,7 @@ int HookSendMsg(WPARAM w, LPARAM l) mir_free(dbei->pBlob); dbei->pBlob = (PBYTE)msg2; dbei->cbBlob = strlen(msg2)+1; + hcontact_data[hContact].msgs_to_tag.erase(i); } } } -- cgit v1.2.3