diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2011-10-12 23:03:15 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2011-10-12 23:03:15 +0300 |
commit | 448c6ca661ec9c826cd18bd160e050cf21da112c (patch) | |
tree | bca331b9c59d2b8ee49cb0ce488203ac4ea34d5d /messages.cpp | |
parent | 34317b53102eb8d1cad310fec31922a85bf9add9 (diff) |
notification on failed delivery
Diffstat (limited to 'messages.cpp')
-rwxr-xr-x | messages.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/messages.cpp b/messages.cpp index 44172df..ab6197c 100755 --- a/messages.cpp +++ b/messages.cpp @@ -610,9 +610,7 @@ 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); - HANDLE h = (HANDLE)CallContactService(hContact, PSS_MESSAGE, (WPARAM)flags, (LPARAM)msg); - sent_msgs.push_back(h); - return (int)h; + return CallContactService(hContact, PSS_MESSAGE, (WPARAM)flags, (LPARAM)msg); } if(!bJabberAPI || !bIsMiranda09) //force jabber to handle encrypted message by itself cmd += _T("--comment \"\" --no-version "); @@ -752,7 +750,7 @@ int SendMsgSvc_func(HANDLE hContact, char *msg, DWORD flags) HistoryLog(hContact, db_event((char*)str_event.c_str(), 0,0, dbflags|DBEF_SENT)); if(!(flags & PREF_UTF)) flags |= PREF_UTF; - CallContactService(hContact, PSS_MESSAGE, (WPARAM)flags, (LPARAM)toUTF8(str).c_str()); + sent_msgs.push_back((HANDLE)CallContactService(hContact, PSS_MESSAGE, (WPARAM)flags, (LPARAM)toUTF8(str).c_str())); mir_free(msg); return 0; } |