From 07e552f62b366f8ec30551ad9826d8954124b696 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 18 Sep 2017 19:03:33 +0300 Subject: StopSpamMod: removed template for hooking events --- plugins/StopSpamMod/src/stopspam.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/StopSpamMod/src/stopspam.cpp') 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; -- cgit v1.2.3