diff options
Diffstat (limited to 'meta2/common.h')
-rw-r--r-- | meta2/common.h | 4 |
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) {
|