From 4042f753d2a154d179dc13a84b8dd7bed8fbd033 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 1 Feb 2019 19:47:48 +0300 Subject: missing check restored --- src/mir_app/src/meta_utils.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/mir_app/src/meta_utils.cpp b/src/mir_app/src/meta_utils.cpp index 5b8d752c04..935a1e0fee 100644 --- a/src/mir_app/src/meta_utils.cpp +++ b/src/mir_app/src/meta_utils.cpp @@ -290,6 +290,9 @@ MCONTACT Meta_GetMostOnlineSupporting(DBCachedContact *cc, int pflagnum, unsigne DBCachedContact* CheckMeta(MCONTACT hMeta) { + if (!g_bMetaEnabled) + return nullptr; + DBCachedContact *cc = currDb->getCache()->GetCachedContact(hMeta); return (cc == nullptr || cc->nSubs == -1) ? nullptr : cc; } -- cgit v1.2.3