diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-27 21:19:48 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-27 21:19:48 +0300 |
commit | 1d04c812fa182628596c89f7f092ee2bf928af9f (patch) | |
tree | 5b40f8f4da31ab5f4d270830fe71650ba713d0ba | |
parent | 7a2b804bf9726fc0287b7b524ead935b759a1205 (diff) |
modified: messages.cpp
-rw-r--r-- | messages.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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); } } } |