From e441a31e9f912fc8e9244d16560565559b1924d2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 27 Sep 2019 23:43:06 +0300 Subject: end of manual experiments with CList/NotOnList --- plugins/SecureIM/src/crypt_check.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/SecureIM/src/crypt_check.cpp') diff --git a/plugins/SecureIM/src/crypt_check.cpp b/plugins/SecureIM/src/crypt_check.cpp index 0b5116682d..1cf85abbff 100644 --- a/plugins/SecureIM/src/crypt_check.cpp +++ b/plugins/SecureIM/src/crypt_check.cpp @@ -116,7 +116,7 @@ bool isContactInvisible(MCONTACT hContact) bool isNotOnList(MCONTACT hContact) { - return db_get_b(hContact, "CList", "NotOnList", 0) != 0; + return !Contact_OnList(hContact); } bool isContactNewPG(MCONTACT hContact) @@ -193,7 +193,7 @@ bool isSecureIM(pUinKey ptr, BOOL emptyMirverAsSecureIM) if (!bAIP) return false; if (!ptr->proto->inspecting) return false; - if (bNOL && db_get_b(ptr->hContact, "CList", "NotOnList", 0)) + if (bNOL && !Contact_OnList(ptr->hContact)) return false; bool isSecureIM = false; -- cgit v1.2.3