From 44323255f6e922e5e2ade2d0c59ca0fe2f532967 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 9 Apr 2023 17:04:00 +0300 Subject: fixes #3479 (StopSpam: duplicate setting removed) --- plugins/StopSpamPlus/src/stdafx.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'plugins/StopSpamPlus/src/stdafx.h') diff --git a/plugins/StopSpamPlus/src/stdafx.h b/plugins/StopSpamPlus/src/stdafx.h index 2574ed6da7..84916a972f 100644 --- a/plugins/StopSpamPlus/src/stdafx.h +++ b/plugins/StopSpamPlus/src/stdafx.h @@ -28,7 +28,6 @@ typedef std::wstring tstring; #include "version.h" #include "resource.h" -#include "settings.h" #define MODULENAME LPGEN("StopSpam") @@ -39,6 +38,21 @@ struct CMPlugin : public PLUGIN { CMPlugin(); + CMOption InfTalkProtection, AddPermanent, HandleAuthReq, AnswNotCaseSens, HistLog; + CMOption Question, AuthRepl, Answer, Congratulation, AnswSplitString; + CMOption DisabledProtoList; + CMOption MaxQuestCount; + + const wchar_t* getQuestion(); + const wchar_t* getReply(); + const wchar_t* getCongrats(); + + bool ProtoDisabled(const char *proto) + { + std::string temp(proto); temp += ' '; + return strstr(DisabledProtoList, temp.c_str()) != nullptr; + } + int Load() override; }; @@ -49,8 +63,6 @@ tstring variables_parse(const wchar_t *tstrFormat, MCONTACT hContact); tstring trim(tstring const &tstr, tstring const &trimChars = L" \f\n\r\t\v"); INT_PTR IsContactPassed(WPARAM wParam, LPARAM /*lParam*/); -INT_PTR RemoveTempContacts(WPARAM wParam,LPARAM lParam); -int OnSystemModulesLoaded(WPARAM wParam, LPARAM lParam); int OnDbEventAdded(WPARAM wParam, LPARAM lParam); int OnDbEventFilterAdd(WPARAM w, LPARAM l); int OnOptInit(WPARAM w, LPARAM l); -- cgit v1.2.3