From 385c6ad2482ae2b5dfbc0c8fa2046080db713995 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 3 Jan 2025 18:57:43 +0300 Subject: fixes #3679 (StopSpam: Jabber message query overflow) --- plugins/StopSpamPlus/src/options.cpp | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'plugins/StopSpamPlus/src/options.cpp') diff --git a/plugins/StopSpamPlus/src/options.cpp b/plugins/StopSpamPlus/src/options.cpp index 99981028c7..0eb3114c39 100644 --- a/plugins/StopSpamPlus/src/options.cpp +++ b/plugins/StopSpamPlus/src/options.cpp @@ -4,27 +4,30 @@ const wchar_t pluginDescription[] = LPGENW("No more spam! Robots can't go! Only class COptMainDlg : public CDlgBase { - CCtrlEdit edtCount, edtDescr; + CCtrlEdit edtDescr; + CCtrlSpin spinCount, spinTimeout; CCtrlCheck chk1, chk2, chk3, chk4, chk6; public: COptMainDlg() : CDlgBase(g_plugin, IDD_MAIN), - edtCount(this, ID_MAXQUESTCOUNT), edtDescr(this, ID_DESCRIPTION), + spinCount(this, IDC_SPIN1, 10), + spinTimeout(this, IDC_SPIN2, 60), chk1(this, ID_INFTALKPROT), chk2(this, ID_ADDPERMANENT), chk3(this, ID_HANDLEAUTHREQ), chk4(this, ID_NOTCASESENS), chk6(this, ID_HISTORY_LOG) { - CreateLink(edtCount, g_plugin.MaxQuestCount); - - CreateLink(chk1, g_plugin.InfTalkProtection); - CreateLink(chk2, g_plugin.AddPermanent); - CreateLink(chk3, g_plugin.HandleAuthReq); - CreateLink(chk4, g_plugin.AnswNotCaseSens); - CreateLink(chk6, g_plugin.HistLog); + CreateLink(spinCount, g_plugin.iMaxQuestCount); + CreateLink(spinTimeout, g_plugin.iAnswerTimeout); + + CreateLink(chk1, g_plugin.bInfTalkProtection); + CreateLink(chk2, g_plugin.bAddPermanent); + CreateLink(chk3, g_plugin.bHandleAuthReq); + CreateLink(chk4, g_plugin.bAnswNotCaseSens); + CreateLink(chk6, g_plugin.bHistLog); } bool OnInitDialog() override -- cgit v1.2.3