summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-01-03 19:14:07 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-01-03 19:14:07 +0300
commit82d5dddc7c633a99ad97a732c91e80904fc6e12f (patch)
tree08ccf1cb633d69a9f56cad31df3154d0b73f0353
parent385c6ad2482ae2b5dfbc0c8fa2046080db713995 (diff)
compilation fix
-rw-r--r--plugins/StopSpamPlus/src/events.cpp2
-rw-r--r--plugins/StopSpamPlus/src/stdafx.h2
2 files changed, 3 insertions, 1 deletions
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 <time.h>
+
#include <windows.h>
#include <commctrl.h>
#include <sstream>