From 11b3bc099739ab35d468ef064ebeda756feeeb42 Mon Sep 17 00:00:00 2001 From: sje Date: Thu, 4 Oct 2007 04:10:03 +0000 Subject: fix duplicate subcocntacts when importing (reset metaMap before modules loaded) fix to binary tree node deletion git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@349 4f64403b-2f21-0410-a795-97e2b3489a10 --- meta2/common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meta2/common.h') diff --git a/meta2/common.h b/meta2/common.h index 35a0aca..f2e9b74 100644 --- a/meta2/common.h +++ b/meta2/common.h @@ -80,12 +80,14 @@ extern DWORD next_meta_id; #define MAX_SUBCONTACTS 20 +#define META_ID "MetaID" + inline bool MetaEnabled() { return DBGetContactSettingByte(0, MODULE, "Enabled", 1) == 1; } inline bool IsMetacontact(HANDLE hContact) { - return DBGetContactSettingDword(hContact, MODULE, "MetaID", (DWORD)-1) != (DWORD)-1; + return DBGetContactSettingDword(hContact, MODULE, META_ID, (DWORD)-1) != (DWORD)-1; } inline bool IsSubcontact(HANDLE hContact) { -- cgit v1.2.3