From 10bc9e42dfba6ed8be41199243d688c2e367dc0d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 30 Jun 2015 18:59:38 +0000 Subject: MS_CLIST_GETSTATUSMODEDESCRIPTION & MS_CLIST_GETCONTACTDISPLAYNAME replaced with pcli->* members git-svn-id: http://svn.miranda-ng.org/main/trunk@14459 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Spamotron/src/spamotron.cpp | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'plugins/Spamotron/src/spamotron.cpp') diff --git a/plugins/Spamotron/src/spamotron.cpp b/plugins/Spamotron/src/spamotron.cpp index 4101d8db4c..c0d76a9a9f 100644 --- a/plugins/Spamotron/src/spamotron.cpp +++ b/plugins/Spamotron/src/spamotron.cpp @@ -1,5 +1,6 @@ #include "common.h" +CLIST_INTERFACE *pcli; HINSTANCE hInst; HANDLE hOptInitialize, hModulesLoaded, hDBContactAdded, hDBEventAdded, hDBEventFilterAdd; time_t last_queue_check = 0; @@ -19,8 +20,6 @@ PLUGININFOEX pluginInfo = { {0x14331048, 0x5a73, 0x4fdb, {0xb9, 0x09, 0x2d, 0x7e, 0x18, 0x25, 0xa0, 0x12}} }; - - extern int OnOptInitialize(WPARAM wParam, LPARAM lParam); BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) @@ -36,18 +35,6 @@ int OnModulesLoaded(WPARAM, LPARAM) return 0; } -int OnDBContactAdded(WPARAM, LPARAM) -{ - //MessageBox(NULL, _T("OnDBContactAdded"), _T("Event"), MB_OK); - return 0; -} - -int OnDBEventAdded(WPARAM wParam, LPARAM lParam) -{ - - return 0; -} - int OnDBEventFilterAdd(WPARAM wParam, LPARAM lParam) { MCONTACT hContact = wParam; @@ -523,6 +510,8 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda extern "C" __declspec(dllexport) int Load() { mir_getLP(&pluginInfo); + mir_getCLI(); + srand((unsigned)time(0)); bayesdb = NULL; if (_getOptB("BayesEnabled", defaultBayesEnabled)) { @@ -536,8 +525,6 @@ extern "C" __declspec(dllexport) int Load() } hModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded); - hDBContactAdded = HookEvent(ME_DB_CONTACT_ADDED, OnDBContactAdded); - hDBEventAdded = HookEvent(ME_DB_EVENT_ADDED, OnDBEventAdded); hDBEventFilterAdd = HookEvent(ME_DB_EVENT_FILTER_ADD, OnDBEventFilterAdd); return 0; } -- cgit v1.2.3