diff options
Diffstat (limited to '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)
|