summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ExternalAPI/m_stopspam.h6
-rw-r--r--stopspam/src/stopspam.cpp2
2 files changed, 7 insertions, 1 deletions
diff --git a/ExternalAPI/m_stopspam.h b/ExternalAPI/m_stopspam.h
index c47ce75..ff3ae05 100644
--- a/ExternalAPI/m_stopspam.h
+++ b/ExternalAPI/m_stopspam.h
@@ -31,4 +31,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//returns a "Contact Stae" flag
#define MS_STOPSPAM_CONTACTPASSED "StopSpam/IsContactPassed"
+//remove all temporary contacts from db
+//wParam=0
+//lParam=0
+//returns 0
+#define MS_STOPSPAM_REMTEMPCONTACTS "StopSpam/RemoveTempContacts"
+
#endif \ No newline at end of file
diff --git a/stopspam/src/stopspam.cpp b/stopspam/src/stopspam.cpp
index 1006482..b61ea60 100644
--- a/stopspam/src/stopspam.cpp
+++ b/stopspam/src/stopspam.cpp
@@ -73,7 +73,7 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
HookEvent(ME_SYSTEM_MODULESLOADED, OnSystemModulesLoaded);
// Add deliting temporary contacts
- hTempRemove = CreateServiceFunction(pluginName"/RemoveTempContacts", RemoveTempContacts);
+ hTempRemove = CreateServiceFunction(MS_STOPSPAM_REMTEMPCONTACTS, RemoveTempContacts);
ZeroMemory(&mi, sizeof(mi));
mi.cbSize = sizeof(mi);
mi.position = -0x7FFFFFFF;