diff options
author | admin@progandy.co.cc <admin@progandy.co.cc@eced67a3-f377-a0ae-92ae-d6de1850b05a> | 2010-09-12 15:31:41 +0000 |
---|---|---|
committer | admin@progandy.co.cc <admin@progandy.co.cc@eced67a3-f377-a0ae-92ae-d6de1850b05a> | 2010-09-12 15:31:41 +0000 |
commit | 9832446d4b9476acfb3b5fc63d3b8f3d54f398b8 (patch) | |
tree | 8fee3226060337fbb216e6bafccb34f03129bbc4 /MirOTR/otr.cpp | |
parent | bed8c75c86c6002eec23af0332912224f452558c (diff) |
- moved options from Plugins to Services
- [ issue 8 ] added some code for compatibility with SecureIM
git-svn-id: http://mirotr.googlecode.com/svn/trunk@10 eced67a3-f377-a0ae-92ae-d6de1850b05a
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) {
|