summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx
diff options
context:
space:
mode:
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)