diff options
Diffstat (limited to 'messages.cpp')
-rwxr-xr-x | messages.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/messages.cpp b/messages.cpp index 2d48052..44172df 100755 --- a/messages.cpp +++ b/messages.cpp @@ -23,6 +23,8 @@ boost::mutex new_key_hcnt_mutex; bool _terminate = false; int returnNoError(HANDLE hContact); +std::list<HANDLE> sent_msgs; + int RecvMsgSvc_func(HANDLE hContact, std::wstring str, char *msg, DWORD flags, DWORD timestamp) { DWORD dbflags = DBEF_UTF; @@ -608,7 +610,9 @@ int SendMsgSvc_func(HANDLE hContact, char *msg, DWORD flags) HistoryLog(hContact, db_event("Failed to encrypt message with GPG", 0,0, DBEF_SENT)); hcontact_data[hContact].msgs_to_pass.push_back("Failed to encrypt message with GPG"); mir_free(msg); - return CallContactService(hContact, PSS_MESSAGE, (WPARAM)flags, (LPARAM)msg); + HANDLE h = (HANDLE)CallContactService(hContact, PSS_MESSAGE, (WPARAM)flags, (LPARAM)msg); + sent_msgs.push_back(h); + return (int)h; } if(!bJabberAPI || !bIsMiranda09) //force jabber to handle encrypted message by itself cmd += _T("--comment \"\" --no-version "); |