From 101a521ee025001c119462915d3497e5f112809b Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sun, 15 Aug 2010 23:17:11 +0300 Subject: modified: messages.cpp --- messages.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'messages.cpp') 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) -- cgit v1.2.3