diff options
author | George Hazan <ghazan@miranda.im> | 2019-02-01 19:47:48 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-02-01 19:47:48 +0300 |
commit | 4042f753d2a154d179dc13a84b8dd7bed8fbd033 (patch) | |
tree | 90e7b08911f382a1ba3687e5703ae242a8ce79f1 | |
parent | 38853f0f252956930d6bd5bcd864fb76670d548b (diff) |
missing check restored
-rw-r--r-- | src/mir_app/src/meta_utils.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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;
}
|