summaryrefslogtreecommitdiff
path: root/plugins/StopSpamPlus/src/stdafx.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-04-09 17:04:00 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-04-09 17:04:00 +0300
commit44323255f6e922e5e2ade2d0c59ca0fe2f532967 (patch)
tree1b265e419400726f0fac2c9642e2fadb6755538f /plugins/StopSpamPlus/src/stdafx.h
parent9308a02b082c6bf6c9b796df8051eff8447f979f (diff)
fixes #3479 (StopSpam: duplicate setting removed)
Diffstat (limited to 'plugins/StopSpamPlus/src/stdafx.h')
-rw-r--r--plugins/StopSpamPlus/src/stdafx.h18
1 files changed, 15 insertions, 3 deletions
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>
{
CMPlugin();
+ CMOption<bool> InfTalkProtection, AddPermanent, HandleAuthReq, AnswNotCaseSens, HistLog;
+ CMOption<wchar_t *> Question, AuthRepl, Answer, Congratulation, AnswSplitString;
+ CMOption<char *> DisabledProtoList;
+ CMOption<uint32_t> 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);