diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2011-04-01 01:28:48 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2011-04-01 01:28:48 +0300 |
commit | 089c1fb6bcbdb5ea07419486b78da9c3e120ee9c (patch) | |
tree | 1cf07b44871112d8fb54f848032bd899200b6dd3 /utilities.cpp | |
parent | 6890c7c42b314e31902cf174ad2ce1bdb8f62e1c (diff) |
)
Diffstat (limited to 'utilities.cpp')
-rw-r--r-- | utilities.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/utilities.cpp b/utilities.cpp index f05ebed..201f359 100644 --- a/utilities.cpp +++ b/utilities.cpp @@ -975,12 +975,9 @@ void AddHandlers() bool isContactSecured(HANDLE hContact) { - BYTE gpg_enc = DBGetContactSettingByte(hContact, szGPGModuleName, "GPGEncryption", 0); - if(!gpg_enc) - { + if(metaIsProtoMetaContacts(hContact)) hContact = metaGetContact(hContact); - gpg_enc = DBGetContactSettingByte(hContact, szGPGModuleName, "GPGEncryption", 0); - } + BYTE gpg_enc = DBGetContactSettingByte(hContact, szGPGModuleName, "GPGEncryption", 0); if(!gpg_enc) return false; TCHAR *key = UniGetContactSettingUtf(hContact, szGPGModuleName, "GPGPubKey", _T("")); |