diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-28 22:37:49 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-28 22:37:49 +0300 |
commit | 66ca1334996fac1e76b1830b00a7a8d42ddb8e42 (patch) | |
tree | c9281a516aca66294dfb10d3b0169c746b221a18 /messages.cpp | |
parent | 81a35fab982d1d0a98a4ddf61e8b57f03fc9e41e (diff) |
still have problems with metacontacts
Diffstat (limited to 'messages.cpp')
-rw-r--r-- | messages.cpp | 4 |
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); |