From 82cfcc3820e1794ae486cf23a8a7d29174686c67 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 27 May 2022 07:17:31 +0100 Subject: Fix some warnings that were missed during the merge. --- src/modules/m_connflood.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_connflood.cpp b/src/modules/m_connflood.cpp index e24db6b2f..de307f2d0 100644 --- a/src/modules/m_connflood.cpp +++ b/src/modules/m_connflood.cpp @@ -87,7 +87,7 @@ public: if (throttled) { - if (tdiff > time_t(seconds + timeout)) + if (tdiff > (seconds + timeout)) { /* expire throttle */ throttled = false; @@ -99,7 +99,7 @@ public: return MOD_RES_DENY; } - if (tdiff <= time_t(seconds)) + if (tdiff <= seconds) { if (conns >= maxconns) { -- cgit v1.3.1-10-gc9f91