summaryrefslogtreecommitdiff
path: root/messages.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'messages.cpp')
-rw-r--r--messages.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/messages.cpp b/messages.cpp
index c7e0c99..1727bfc 100644
--- a/messages.cpp
+++ b/messages.cpp
@@ -521,7 +521,6 @@ int SendMsgSvc(WPARAM w, LPARAM l)
// hps->str = new string(str_event);
// hps->hContact = hContact;
// msgs_to_ignore.push_back(hps);
- hcontact_data[hContact].msgs_to_ignore.push_back(str_event);
if(bAppendTags)
{
str_event.insert(0, toUTF8(outopentag));
@@ -529,6 +528,9 @@ int SendMsgSvc(WPARAM w, LPARAM l)
}
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[hContact].msgs_to_ignore.push_back((char*)ccs->lParam);
+ hcontact_data[metaGetContact(hContact)].msgs_to_ignore.push_back((char*)ccs->lParam);
+ hcontact_data[metaGetContact(hContact)].msgs_to_ignore.push_back((char*)ccs->lParam); //hmm, twice ? metacontacts !! %)
// 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);