diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-15 23:17:11 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-15 23:17:11 +0300 |
commit | 101a521ee025001c119462915d3497e5f112809b (patch) | |
tree | e4dacd0cae5f11f8db14a90523d29b98816abc9f | |
parent | 013b278a482a1e1821715a1e2c6c7da5e7f94434 (diff) |
modified: messages.cpp
-rw-r--r-- | messages.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/messages.cpp b/messages.cpp index ec612fe..a17ff09 100644 --- a/messages.cpp +++ b/messages.cpp @@ -64,7 +64,12 @@ int RecvMsgSvc(WPARAM w, LPARAM l) if((s2 != wstring::npos) && (s1 != wstring::npos))
{ //this is generic encrypted data block
if(!DBGetContactSettingByte(ccs->hContact, szModuleName, "GPGEncryption", 0))
- ;//
+ {
+ if(MessageBox(0, _T("We received encrypted message from contact with encryption turned off.\nDo you want turn on encryption for this contact ?"), _T("Warning"), MB_YESNO) == IDYES)
+ DBWriteContactSettingByte(ccs->hContact, szModuleName, "GPGEncryption", 1);
+ else if(MessageBox(0, _T("Do you want try to decrypt encrypted message ?"), _T("Warning"), MB_YESNO) == IDNO)
+ return CallService(MS_PROTO_CHAINRECV, w, l);
+ }
{
wstring::size_type p = 0;
while((p = str.find(_T("\r"), p)) != wstring::npos)
|