From ca55ac7905e8ffd1ee979b5b5fe7121fa7a03a5d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 28 May 2018 22:38:35 +0300 Subject: all plugins => CMPlugin virtual functions --- plugins/StopSpamMod/src/init.cpp | 9 +-------- plugins/StopSpamMod/src/stdafx.h | 2 ++ 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'plugins/StopSpamMod') diff --git a/plugins/StopSpamMod/src/init.cpp b/plugins/StopSpamMod/src/init.cpp index 5eae71c585..27a58fb800 100755 --- a/plugins/StopSpamMod/src/init.cpp +++ b/plugins/StopSpamMod/src/init.cpp @@ -128,7 +128,7 @@ static int OnSystemModulesLoaded(WPARAM, LPARAM) ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Load() +int CMPlugin::Load() { CreateServiceFunction("/RemoveTmp", (MIRANDASERVICE)RemoveTmp); HookEvent(ME_SYSTEM_MODULESLOADED, OnSystemModulesLoaded); @@ -147,10 +147,3 @@ extern "C" int __declspec(dllexport) Load() return 0; } - -///////////////////////////////////////////////////////////////////////////////////////// - -extern "C" int __declspec(dllexport) Unload(void) -{ - return 0; -} diff --git a/plugins/StopSpamMod/src/stdafx.h b/plugins/StopSpamMod/src/stdafx.h index d6ccebe6dd..6ae48751de 100755 --- a/plugins/StopSpamMod/src/stdafx.h +++ b/plugins/StopSpamMod/src/stdafx.h @@ -38,6 +38,8 @@ using namespace std; struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; }; extern HANDLE hStopSpamLogDirH; -- cgit v1.2.3