summaryrefslogtreecommitdiff
path: root/utilities.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2011-04-01 06:00:00 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2011-04-01 06:00:00 +0300
commit21f2c63d296d4cdf534de24a216811b4c4b744fc (patch)
treea3bf587346d47cd9c53c328f463699f6dc543e33 /utilities.cpp
parent34571247cb430bcc9be56630e9fb0a714b5fd4c8 (diff)
modified: utilities.cpp
Diffstat (limited to 'utilities.cpp')
-rw-r--r--utilities.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/utilities.cpp b/utilities.cpp
index 83407d0..8d33d4b 100644
--- a/utilities.cpp
+++ b/utilities.cpp
@@ -977,9 +977,12 @@ bool isContactSecured(HANDLE hContact)
{
BYTE gpg_enc = DBGetContactSettingByte(hContact, szGPGModuleName, "GPGEncryption", 0);
if(!gpg_enc)
+ {
+ debuglog<<time_str()<<": encryption is turned of for "<<(TCHAR*)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)hContact, GCDNF_TCHAR)<<"\n";
return false;
+ }
TCHAR *key = UniGetContactSettingUtf(hContact, szGPGModuleName, "GPGPubKey", _T(""));
- if(!key[0])
+ if(!key[0] && !metaIsProtoMetaContacts(hContact))
{
mir_free(key);
return false;