summaryrefslogtreecommitdiff
path: root/plugins/SeenPlugin/src
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 /plugins/SeenPlugin/src
parent15c49e3fc4cf033fffbf79e9f68a0405d5a95d14 (diff)
obsolete services from m_ignore.h converted into functions
Diffstat (limited to 'plugins/SeenPlugin/src')
-rw-r--r--plugins/SeenPlugin/src/missed.cpp2
-rw-r--r--plugins/SeenPlugin/src/utils.cpp8
2 files changed, 6 insertions, 4 deletions
diff --git a/plugins/SeenPlugin/src/missed.cpp b/plugins/SeenPlugin/src/missed.cpp
index 2faa45bea6..ed5858e88f 100644
--- a/plugins/SeenPlugin/src/missed.cpp
+++ b/plugins/SeenPlugin/src/missed.cpp
@@ -123,7 +123,7 @@ int Test(WPARAM wparam, LPARAM lparam)
if (lparam < ICON_OFFLINE || lparam > ICON_INVIS)
return 0;
- if (CallService(MS_IGNORE_ISIGNORED, wparam, IGNOREEVENT_USERONLINE))
+ if (Ignore_IsIgnored(wparam, IGNOREEVENT_USERONLINE))
return 0;
if (g_plugin.getByte((MCONTACT)wparam, "Missed", 0) == 2)
diff --git a/plugins/SeenPlugin/src/utils.cpp b/plugins/SeenPlugin/src/utils.cpp
index 0bb0111924..a4e37838ea 100644
--- a/plugins/SeenPlugin/src/utils.cpp
+++ b/plugins/SeenPlugin/src/utils.cpp
@@ -436,7 +436,7 @@ LRESULT CALLBACK PopupDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
void ShowPopup(MCONTACT hcontact, const char * lpzProto, int newStatus)
{
- if (CallService(MS_IGNORE_ISIGNORED, (WPARAM)hcontact, IGNOREEVENT_USERONLINE))
+ if (Ignore_IsIgnored(hcontact, IGNOREEVENT_USERONLINE))
return;
if (!g_plugin.getByte("UsePopups", 0) || !Clist_IsHidden(hcontact))
@@ -470,8 +470,10 @@ void ShowPopup(MCONTACT hcontact, const char * lpzProto, int newStatus)
void myPlaySound(MCONTACT hcontact, WORD newStatus, WORD oldStatus)
{
- if (CallService(MS_IGNORE_ISIGNORED, (WPARAM)hcontact, IGNOREEVENT_USERONLINE)) return;
- //oldStatus and hcontact are not used yet
+ if (Ignore_IsIgnored(hcontact, IGNOREEVENT_USERONLINE))
+ return;
+
+ // oldStatus and hcontact are not used yet
char *soundname = nullptr;
if ((newStatus == ID_STATUS_ONLINE) || (newStatus == ID_STATUS_FREECHAT)) soundname = "LastSeenTrackedStatusOnline";
else if (newStatus == ID_STATUS_OFFLINE) soundname = "LastSeenTrackedStatusOffline";