summaryrefslogtreecommitdiff
path: root/plugins/StopSpamPlus/src/stdafx.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-01-03 18:57:43 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-01-03 18:57:43 +0300
commit385c6ad2482ae2b5dfbc0c8fa2046080db713995 (patch)
treef87e348a761408b350fc2fdcb201e7a650f2374c /plugins/StopSpamPlus/src/stdafx.h
parent7dc299c08b20c787a3eeb90d5ca61d89b31495b5 (diff)
fixes #3679 (StopSpam: Jabber message query overflow)
Diffstat (limited to 'plugins/StopSpamPlus/src/stdafx.h')
-rw-r--r--plugins/StopSpamPlus/src/stdafx.h29
1 files changed, 22 insertions, 7 deletions
diff --git a/plugins/StopSpamPlus/src/stdafx.h b/plugins/StopSpamPlus/src/stdafx.h
index 75840d2c03..e4e3992f5b 100644
--- a/plugins/StopSpamPlus/src/stdafx.h
+++ b/plugins/StopSpamPlus/src/stdafx.h
@@ -8,17 +8,19 @@
#include <commctrl.h>
#include <sstream>
#include <list>
+#include <map>
#include <newpluginapi.h>
+#include <m_clistint.h>
#include <m_contacts.h>
#include <m_database.h>
-#include <m_protosvc.h>
-#include <m_options.h>
-#include <m_langpack.h>
+#include <m_gui.h>
#include <m_icolib.h>
+#include <m_langpack.h>
+#include <m_netlib.h>
+#include <m_options.h>
+#include <m_protosvc.h>
#include <m_skin.h>
-#include <m_clistint.h>
-#include <m_gui.h>
#include <m_variables.h>
@@ -39,10 +41,22 @@ struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
- CMOption<bool> InfTalkProtection, AddPermanent, HandleAuthReq, AnswNotCaseSens, HistLog;
+ struct Impl
+ {
+ Impl() :
+ timerAnswer(Miranda_GetSystemWindow(), UINT_PTR(this))
+ {
+ timerAnswer.OnEvent = Callback(this, &Impl::OnTimer);
+ }
+
+ CTimer timerAnswer;
+ void OnTimer(CTimer *);
+ } m_impl;
+
+ CMOption<bool> bInfTalkProtection, bAddPermanent, bHandleAuthReq, bAnswNotCaseSens, bHistLog;
CMOption<wchar_t *> Question, AuthRepl, Answer, Congratulation, AnswSplitString;
CMOption<char *> DisabledProtoList;
- CMOption<uint32_t> MaxQuestCount;
+ CMOption<uint32_t> iMaxQuestCount, iAnswerTimeout;
const wchar_t* getQuestion();
const wchar_t* getReply();
@@ -55,6 +69,7 @@ struct CMPlugin : public PLUGIN<CMPlugin>
}
int Load() override;
+ int Unload() override;
};
// utils