From 82d5dddc7c633a99ad97a732c91e80904fc6e12f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 3 Jan 2025 19:14:07 +0300 Subject: compilation fix --- plugins/StopSpamPlus/src/events.cpp | 2 +- plugins/StopSpamPlus/src/stdafx.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/StopSpamPlus/src') diff --git a/plugins/StopSpamPlus/src/events.cpp b/plugins/StopSpamPlus/src/events.cpp index 9b7cf5cbb7..a2bd2d4608 100644 --- a/plugins/StopSpamPlus/src/events.cpp +++ b/plugins/StopSpamPlus/src/events.cpp @@ -152,7 +152,7 @@ void CMPlugin::Impl::OnTimer(CTimer *) time_t now = time(0); for (auto &it : g_times) { - if (now - it.second < iTimeout) + if (now - it.second < iTimeout * 60) continue; if (MEVENT hDbEvent = g_plugin.getDword(it.first, DB_KEY_HASAUTH)) { diff --git a/plugins/StopSpamPlus/src/stdafx.h b/plugins/StopSpamPlus/src/stdafx.h index e4e3992f5b..306fed7531 100644 --- a/plugins/StopSpamPlus/src/stdafx.h +++ b/plugins/StopSpamPlus/src/stdafx.h @@ -4,6 +4,8 @@ // disable security warnings about "*_s" functions #define _CRT_SECURE_NO_DEPRECATE +#include + #include #include #include -- cgit v1.2.3