summaryrefslogtreecommitdiff
path: root/protocols/Non-IM Contact
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-09-27 14:40:29 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-09-27 14:40:29 +0300
commit226f2fceddb5b81d5ba7a16729b4f07e53cfafb4 (patch)
tree77d177e5517eb8267c2755b97f4fe9a3d37d1a37 /protocols/Non-IM Contact
parent15c49e3fc4cf033fffbf79e9f68a0405d5a95d14 (diff)
obsolete services from m_ignore.h converted into functions
Diffstat (limited to 'protocols/Non-IM Contact')
-rw-r--r--protocols/Non-IM Contact/src/contactinfo.cpp6
-rw-r--r--protocols/Non-IM Contact/src/dialog.cpp4
2 files changed, 5 insertions, 5 deletions
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);