From 226f2fceddb5b81d5ba7a16729b4f07e53cfafb4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 27 Sep 2019 14:40:29 +0300 Subject: obsolete services from m_ignore.h converted into functions --- plugins/MenuItemEx/src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/MenuItemEx/src') diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp index a8c8a6f3c5..68c10c84f4 100644 --- a/plugins/MenuItemEx/src/main.cpp +++ b/plugins/MenuItemEx/src/main.cpp @@ -630,7 +630,7 @@ static INT_PTR onChangeProto(WPARAM hContact, LPARAM lparam) static int isIgnored(MCONTACT hContact, int type) { if (type != IGNOREEVENT_ALL) - return CallService(MS_IGNORE_ISIGNORED, hContact, (LPARAM)type); + return Ignore_IsIgnored(hContact, (LPARAM)type); int i = 0, all = 0; for (i = 1; i < _countof(ii); i++) @@ -645,7 +645,10 @@ static INT_PTR onIgnore(WPARAM wparam, LPARAM lparam) if (g_plugin.getByte("ignorehide", 0) && (lparam == IGNOREEVENT_ALL)) Clist_HideContact(wparam, !isIgnored((MCONTACT)wparam, lparam)); - CallService(isIgnored((MCONTACT)wparam, lparam) ? MS_IGNORE_UNIGNORE : MS_IGNORE_IGNORE, wparam, lparam); + if (isIgnored(wparam, lparam)) + Ignore_Allow(wparam, lparam); + else + Ignore_Ignore(wparam, lparam); return 0; } -- cgit v1.2.3