diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-11-19 23:28:06 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-11-19 23:28:06 +0000 |
commit | 3722709997f540d24f802a2766018a5d0a0f9f47 (patch) | |
tree | e3c605ef4c4acfe827aded050a8ceabcc7ba8bf1 /meta2/core_functions.cpp | |
parent | d926369611fbf2dc975e0080cbd60cfa111c7d11 (diff) |
ignore subcontact online notifications
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@381 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'meta2/core_functions.cpp')
-rw-r--r-- | meta2/core_functions.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta2/core_functions.cpp b/meta2/core_functions.cpp index 8b27bbf..1b47bd5 100644 --- a/meta2/core_functions.cpp +++ b/meta2/core_functions.cpp @@ -143,6 +143,8 @@ void Meta_Assign(HANDLE hSub, HANDLE hMeta) { } else // shouldn't happen, as the menu option is hidden when metas are disabled...
DBWriteContactSettingByte(hMeta, "CList", "Hidden", 1);
+ CallService(MS_IGNORE_IGNORE, (WPARAM)hSub, (WPARAM)IGNOREEVENT_USERONLINE);
+
DBVARIANT dbv;
if(DBGetContactSettingUTF8String(hMeta, "CList", "MyHandle", &dbv)) {
if(!DBGetContactSettingUTF8String(hSub, "CList", "MyHandle", &dbv)) {
@@ -175,6 +177,8 @@ void Meta_Remove(HANDLE hSub) { DBWriteContactSettingByte(hSub, MODULE, "IsSubcontact", 0);
if(!meta_group_hack_disabled) DBWriteContactSettingByte(hSub, "CList", "Hidden", 0);
+ CallService(MS_IGNORE_UNIGNORE, (WPARAM)hSub, (WPARAM)IGNOREEVENT_USERONLINE);
+
metaMap[hMeta].remove(hSub);
if(metaMap[hMeta].size() == 0) {
CallService(MS_DB_CONTACT_DELETE, (WPARAM)hMeta, 0);
|