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 --- protocols/Non-IM Contact/src/contactinfo.cpp | 6 +++--- protocols/Non-IM Contact/src/dialog.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/Non-IM Contact') diff --git a/protocols/Non-IM Contact/src/contactinfo.cpp b/protocols/Non-IM Contact/src/contactinfo.cpp index 797a328501..6f34ff479b 100644 --- a/protocols/Non-IM Contact/src/contactinfo.cpp +++ b/protocols/Non-IM Contact/src/contactinfo.cpp @@ -339,7 +339,7 @@ INT_PTR CALLBACK DlgProcCopy(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) free(replace); MCONTACT hContact2 = db_add_contact(); Proto_AddToContact(hContact2, MODNAME); - CallService(MS_IGNORE_IGNORE, (WPARAM)hContact2, IGNOREEVENT_USERONLINE); + Ignore_Ignore(hContact2, IGNOREEVENT_USERONLINE); g_plugin.setString(hContact2, "Nick", Translate("New Non-IM Contact")); // blank dbVar2 so the replaceing doesnt crash.. mir_strcpy(dbVar2, ""); @@ -399,7 +399,7 @@ INT_PTR CALLBACK DlgProcCopy(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) return 0; } Proto_AddToContact(hContact2, MODNAME); - CallService(MS_IGNORE_IGNORE, (WPARAM)hContact2, IGNOREEVENT_USERONLINE); + Ignore_Ignore(hContact2, IGNOREEVENT_USERONLINE); g_plugin.setString(hContact2, "Nick", Translate("New Non-IM Contact")); g_plugin.setString(hContact2, "Name", dbVar1); if (!db_get_static(hContact1, MODNAME, "ProgramString", dbVar1, _countof(dbVar1))) @@ -632,7 +632,7 @@ INT_PTR ImportContacts(WPARAM, LPARAM) continue; } Proto_AddToContact(hContact, MODNAME); - CallService(MS_IGNORE_IGNORE, hContact, IGNOREEVENT_USERONLINE); + Ignore_Ignore(hContact, IGNOREEVENT_USERONLINE); g_plugin.setString(hContact, "Nick", Translate("New Non-IM Contact")); g_plugin.setString(hContact, "Name", name); g_plugin.setString(hContact, "ProgramString", program); diff --git a/protocols/Non-IM Contact/src/dialog.cpp b/protocols/Non-IM Contact/src/dialog.cpp index 989f2fdb81..1db80c26df 100644 --- a/protocols/Non-IM Contact/src/dialog.cpp +++ b/protocols/Non-IM Contact/src/dialog.cpp @@ -305,7 +305,7 @@ INT_PTR addContact(WPARAM, LPARAM) char tmp[256]; MCONTACT hContact = db_add_contact(); Proto_AddToContact(hContact, MODNAME); - CallService(MS_IGNORE_IGNORE, hContact, IGNOREEVENT_USERONLINE); + Ignore_Ignore(hContact, IGNOREEVENT_USERONLINE); g_plugin.setWString(hContact, "Nick", TranslateT("New Non-IM Contact")); DoPropertySheet(hContact); if (db_get_static(hContact, MODNAME, "Name", tmp, _countof(tmp))) @@ -321,7 +321,7 @@ INT_PTR editContact(WPARAM wParam, LPARAM) if (!hContact) { hContact = db_add_contact(); Proto_AddToContact(hContact, MODNAME); - CallService(MS_IGNORE_IGNORE, hContact, IGNOREEVENT_USERONLINE); + Ignore_Ignore(hContact, IGNOREEVENT_USERONLINE); g_plugin.setString(hContact, "Nick", Translate("New Non-IM Contact")); } DoPropertySheet(hContact); -- cgit v1.2.3