summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-02-27 19:17:59 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-02-27 19:17:59 +0000
commitec35bbd307636ded865626eb13584e4ab0b9a4af (patch)
tree24b68bfb7574a763ed5ebcfb56e5c6b86d047324 /plugins/UserInfoEx
parent0800db775a4da41507478a02fa8cb9e58f35b0c9 (diff)
direct access to MetaContacts/IsSubcontact removed everywhere
git-svn-id: http://svn.miranda-ng.org/main/trunk@8312 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx')
-rw-r--r--plugins/UserInfoEx/src/mir_db.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/UserInfoEx/src/mir_db.cpp b/plugins/UserInfoEx/src/mir_db.cpp
index bdbb776594..48cc65751d 100644
--- a/plugins/UserInfoEx/src/mir_db.cpp
+++ b/plugins/UserInfoEx/src/mir_db.cpp
@@ -48,9 +48,7 @@ MCONTACT Sub(MCONTACT hMetaContact, int idx)
bool IsSub(MCONTACT hContact)
{
- return myGlobals.szMetaProto &&
- db_get_b(NULL, myGlobals.szMetaProto, "Enabled", TRUE) &&
- db_get_b(hContact, myGlobals.szMetaProto, "IsSubcontact", FALSE);
+ return db_mc_isSub(hContact);
}
MCONTACT GetMeta(MCONTACT hContact)