diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-10-03 08:03:17 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-10-03 08:03:17 +0000 |
commit | f99d18dd83625a753a7171e807b404345b11de4d (patch) | |
tree | 3e05a5a78611fb447951ed800355bd335c1b2b2c /meta2/common.h | |
parent | e52098965bc45872cff2d99147b0c27769c146f0 (diff) |
fix major bug in 'get most online supporting cap' function
notify of subcontact change on any subcontact status change
calculate subcontacts and meta status after modules loaded
use meta map for contact count
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@342 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'meta2/common.h')
-rw-r--r-- | meta2/common.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta2/common.h b/meta2/common.h index 67f3a50..35a0aca 100644 --- a/meta2/common.h +++ b/meta2/common.h @@ -74,8 +74,6 @@ extern UTF8_INTERFACE utfi; extern HANDLE metaMainThread;
extern DWORD next_meta_id;
-extern int meta_count;
-
#ifndef MIID_META2
#define MIID_META2 { 0x4415A85D, 0xD6DA, 0x4551, { 0xB2, 0xB8, 0x9B, 0xDD, 0x82, 0xE2, 0x4B, 0x50 } }
#endif
@@ -98,6 +96,10 @@ inline char *ContactProto(HANDLE hContact) { return (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0);
}
+inline TCHAR *ContactName(HANDLE hContact) {
+ return (TCHAR *)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)hContact, GCDNF_TCHAR);
+}
+
inline WORD ContactStatus(HANDLE hContact, char *proto) {
if(!proto) return ID_STATUS_OFFLINE;
return DBGetContactSettingWord(hContact, proto, "Status", ID_STATUS_OFFLINE);
|