summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-04-08 17:54:19 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-04-08 17:54:19 +0000
commit78dc54f9e392b45492a2b726d6268c41f594eb41 (patch)
treefa1180153a3ac3610f22ad9f7b002d2a348c2ea5 /src/mir_core
parentafa73da4259ee9a00e60570031f94338542636d8 (diff)
bunch of mc related fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@8892 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/mc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_core/mc.cpp b/src/mir_core/mc.cpp
index 289e29e188..90e967fa98 100644
--- a/src/mir_core/mc.cpp
+++ b/src/mir_core/mc.cpp
@@ -74,7 +74,7 @@ MIR_CORE_DLL(void) db_mc_enable(BOOL bEnabled)
MIR_CORE_DLL(BOOL) db_mc_isMeta(MCONTACT hContact)
{
- if (currDb == NULL) return FALSE;
+ if (currDb == NULL || !g_bEnabled) return FALSE;
DBCachedContact *cc = currDb->m_cache->GetCachedContact(hContact);
return (cc == NULL) ? FALSE : cc->nSubs != -1;
@@ -82,7 +82,7 @@ MIR_CORE_DLL(BOOL) db_mc_isMeta(MCONTACT hContact)
MIR_CORE_DLL(BOOL) db_mc_isSub(MCONTACT hContact)
{
- if (currDb == NULL) return FALSE;
+ if (currDb == NULL || !g_bEnabled) return FALSE;
DBCachedContact *cc = currDb->m_cache->GetCachedContact(hContact);
return (cc == NULL) ? FALSE : cc->parentID != 0;