summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-11-21 06:43:09 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-11-21 06:43:09 +0000
commita12834357408f90a134b1dd4de3527e2fe85b977 (patch)
treeb69aecc5672c9c6f2959f8195d807453348a2b7f
parent36c83d1449804303aa2c72262627fde85441ccda (diff)
ignore subcontact online notifications
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@383 4f64403b-2f21-0410-a795-97e2b3489a10
-rw-r--r--meta2/core_functions.cpp10
-rw-r--r--meta2/version.h2
2 files changed, 7 insertions, 5 deletions
diff --git a/meta2/core_functions.cpp b/meta2/core_functions.cpp
index 1b47bd5..38fba2c 100644
--- a/meta2/core_functions.cpp
+++ b/meta2/core_functions.cpp
@@ -21,15 +21,17 @@ HANDLE GetMetaHandle(DWORD id) {
return 0;
}
-void Meta_Hide(bool hide) {
+void Meta_Hide(bool hide_metas) {
HANDLE hContact = (HANDLE)CallService( MS_DB_CONTACT_FINDFIRST, 0, 0);
char *proto;
HANDLE hMeta;
while(hContact != NULL) {
if(IsMetacontact(hContact)) {
- DBWriteContactSettingByte(hContact, "CList", "Hidden", hide ? 1 : 0);
- } else if(IsSubcontact(hContact) && !meta_group_hack_disabled) {
- DBWriteContactSettingByte(hContact, "CList", "Hidden", hide ? 0 : 1);
+ DBWriteContactSettingByte(hContact, "CList", "Hidden", hide_metas ? 1 : 0);
+ } else if(IsSubcontact(hContact)) {
+ if(!meta_group_hack_disabled)
+ DBWriteContactSettingByte(hContact, "CList", "Hidden", hide_metas ? 0 : 1);
+ CallService(hide_metas ? MS_IGNORE_UNIGNORE : MS_IGNORE_IGNORE, (WPARAM)hContact, (WPARAM)IGNOREEVENT_USERONLINE);
}
hContact = ( HANDLE )CallService( MS_DB_CONTACT_FINDNEXT,( WPARAM )hContact, 0 );
diff --git a/meta2/version.h b/meta2/version.h
index 78dac87..72ff1e4 100644
--- a/meta2/version.h
+++ b/meta2/version.h
@@ -5,7 +5,7 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 0
#define __RELEASE_NUM 0
-#define __BUILD_NUM 14
+#define __BUILD_NUM 15
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
#define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM