summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--messages.cpp5
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);
}
}
}