summaryrefslogtreecommitdiff
path: root/MirOTR/otr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'MirOTR/otr.cpp')
-rw-r--r--MirOTR/otr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/MirOTR/otr.cpp b/MirOTR/otr.cpp
index 485e0f7..98ac2a3 100644
--- a/MirOTR/otr.cpp
+++ b/MirOTR/otr.cpp
@@ -82,6 +82,7 @@ extern "C" {
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)) {
+ // if SecureIM is not disabled for this contact, MirOTR will be set to manual
db_dword_set(hContact, MODULENAME, "Policy", OTRL_POLICY_MANUAL_MOD);
return OTRL_POLICY_MANUAL_MOD;
}