summaryrefslogtreecommitdiff
path: root/plugins/StopSpamMod/src/stopspam.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2017-09-18 19:03:33 +0300
committerKirill Volinsky <mataes2007@gmail.com>2017-09-18 19:03:33 +0300
commit07e552f62b366f8ec30551ad9826d8954124b696 (patch)
treee7ba0a6577df0a438c4c3ae16f101b2510b19588 /plugins/StopSpamMod/src/stopspam.cpp
parent3e9e96f6718b13c069138fb40f24f065ac03c6b7 (diff)
StopSpamMod: removed template for hooking events
Diffstat (limited to 'plugins/StopSpamMod/src/stopspam.cpp')
-rwxr-xr-xplugins/StopSpamMod/src/stopspam.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/StopSpamMod/src/stopspam.cpp b/plugins/StopSpamMod/src/stopspam.cpp
index a2571810f9..d4823b49af 100755
--- a/plugins/StopSpamMod/src/stopspam.cpp
+++ b/plugins/StopSpamMod/src/stopspam.cpp
@@ -17,7 +17,7 @@
#include "stdafx.h"
-MIRANDA_HOOK_EVENT(ME_DB_EVENT_ADDED, hContact, hDbEvent)
+int OnDbEventAdded(WPARAM hContact, LPARAM hDbEvent)
{
DBEVENTINFO dbei = {};
dbei.cbBlob = db_event_getBlobSize(hDbEvent);
@@ -70,7 +70,7 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_ADDED, hContact, hDbEvent)
return 0;
}
-MIRANDA_HOOK_EVENT(ME_DB_EVENT_FILTER_ADD, w, l)
+int OnDbEventFilterAdd(WPARAM w, LPARAM l)
{
MCONTACT hContact = (MCONTACT)w;
if (!l) //fix potential DEP crash
@@ -297,7 +297,7 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_FILTER_ADD, w, l)
return 1;
}
-MIRANDA_HOOK_EVENT(ME_DB_CONTACT_SETTINGCHANGED, w, l)
+int OnDbContactSettingChanged(WPARAM w, LPARAM l)
{
MCONTACT hContact = (MCONTACT)w;
DBCONTACTWRITESETTING * cws = (DBCONTACTWRITESETTING*)l;