diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2011-04-01 06:00:00 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2011-04-01 06:00:00 +0300 |
commit | 21f2c63d296d4cdf534de24a216811b4c4b744fc (patch) | |
tree | a3bf587346d47cd9c53c328f463699f6dc543e33 | |
parent | 34571247cb430bcc9be56630e9fb0a714b5fd4c8 (diff) |
modified: utilities.cpp
-rw-r--r-- | utilities.cpp | 5 |
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; |