summaryrefslogtreecommitdiff
path: root/meta2/common.h
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-10-04 04:10:03 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-10-04 04:10:03 +0000
commit11b3bc099739ab35d468ef064ebeda756feeeb42 (patch)
tree47166dcdbacdcac8c13da0ea045d0b920f59d07c /meta2/common.h
parent83ac052dbd269015fa458567db4147091b13a39e (diff)
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
Diffstat (limited to 'meta2/common.h')
-rw-r--r--meta2/common.h4
1 files changed, 3 insertions, 1 deletions
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) {