From 426e2f9755a14023223e2e3ebfa8e78f6e8677a8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 27 Sep 2019 21:32:12 +0300 Subject: fix for a function name: Clist_IsHidden => Contact_IsHidden Clist_HideContact => Contact_Hide --- plugins/Spamotron/src/spamotron.cpp | 8 ++++---- plugins/Spamotron/src/stdafx.h | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'plugins/Spamotron/src') diff --git a/plugins/Spamotron/src/spamotron.cpp b/plugins/Spamotron/src/spamotron.cpp index 1e85e029a9..f45d88aaa3 100644 --- a/plugins/Spamotron/src/spamotron.cpp +++ b/plugins/Spamotron/src/spamotron.cpp @@ -101,7 +101,7 @@ int OnDBEventFilterAdd(WPARAM wParam, LPARAM lParam) // Hide the contact until verified if option set. if (g_plugin.getByte("HideUnverified", defaultHideUnverified)) - Clist_HideContact(hContact); + Contact_Hide(hContact); // Fetch the incoming message body char *msgblob; @@ -145,7 +145,7 @@ int OnDBEventFilterAdd(WPARAM wParam, LPARAM lParam) if (bCorrectResponse) { g_plugin.setByte(hContact, "Verified", 1); if (g_plugin.getByte("HideUnverified", defaultHideUnverified)) - Clist_HideContact(hContact, false); + Contact_Hide(hContact, false); if (g_plugin.getByte("AddPermanently", defaultAddPermanently)) db_unset(hContact, "CList", "NotOnList"); db_unset(hContact, "CList", "Delete"); @@ -210,7 +210,7 @@ int OnDBEventFilterAdd(WPARAM wParam, LPARAM lParam) { g_plugin.setByte(hContact, "Verified", 1); if (g_plugin.getByte("HideUnverified", defaultHideUnverified)) - Clist_HideContact(hContact, false); + Contact_Hide(hContact, false); if (g_plugin.getByte("AddPermanently", defaultAddPermanently)) db_unset(hContact, "CList", "NotOnList"); db_unset(hContact, "CList", "Delete"); @@ -313,7 +313,7 @@ int OnDBEventFilterAdd(WPARAM wParam, LPARAM lParam) _notify(hContact, POPUP_APPROVED, TranslateT("Contact %s approved."), message); g_plugin.setByte(hContact, "Verified", 1); if (g_plugin.getByte("HideUnverified", defaultHideUnverified)) - Clist_HideContact(hContact, false); + Contact_Hide(hContact, false); if (g_plugin.getByte("AddPermanently", defaultAddPermanently)) db_unset(hContact, "CList", "NotOnList"); db_unset(hContact, "CList", "Delete"); diff --git a/plugins/Spamotron/src/stdafx.h b/plugins/Spamotron/src/stdafx.h index 87ceb09808..b587286647 100644 --- a/plugins/Spamotron/src/stdafx.h +++ b/plugins/Spamotron/src/stdafx.h @@ -6,6 +6,7 @@ #include #include +#include #include #include #include -- cgit v1.2.3