diff options
Diffstat (limited to 'MirOTR/otr.cpp')
-rw-r--r-- | MirOTR/otr.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MirOTR/otr.cpp b/MirOTR/otr.cpp index eb6728c..485e0f7 100644 --- a/MirOTR/otr.cpp +++ b/MirOTR/otr.cpp @@ -81,6 +81,10 @@ extern "C" { DWORD pol;
if(hContact) {
pol = DBGetContactSettingDword(hContact, MODULENAME, "Policy", CONTACT_DEFAULT_POLICY);
+ if (options.bHaveSecureIM && pol != OTRL_POLICY_MANUAL_MOD && pol != OTRL_POLICY_NEVER && db_byte_get(hContact, "SecureIM" , "StatusID", 0)) {
+ db_dword_set(hContact, MODULENAME, "Policy", OTRL_POLICY_MANUAL_MOD);
+ return OTRL_POLICY_MANUAL_MOD;
+ }
if(pol != CONTACT_DEFAULT_POLICY) return pol ;
}
if(context->protocol) {
|