From 3722709997f540d24f802a2766018a5d0a0f9f47 Mon Sep 17 00:00:00 2001 From: sje Date: Mon, 19 Nov 2007 23:28:06 +0000 Subject: ignore subcontact online notifications git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@381 4f64403b-2f21-0410-a795-97e2b3489a10 --- meta2/core_functions.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta2/core_functions.cpp') 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); -- cgit v1.2.3