summaryrefslogtreecommitdiff
path: root/messages.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2011-10-12 17:12:04 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2011-10-12 17:12:04 +0300
commit823800856ab18c23357e108bb9d923cee497ea03 (patch)
tree87be1750cae319b7a0d0c4212b8b94d97af451ba /messages.cpp
parent7b4388cfbe8d7aa873e8aa6d3717ca301eeb59a3 (diff)
modified: messages.cpp
modified: new_gpg.vcxproj modified: utilities.cpp
Diffstat (limited to 'messages.cpp')
-rwxr-xr-xmessages.cpp6
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 ");