From 1a34eb44c07f7cb3156d9aacb3660a1e369ca383 Mon Sep 17 00:00:00 2001 From: Edo Date: Wed, 26 Apr 2023 10:47:40 +0100 Subject: [PATCH] rcon: address review --- src/client/component/rcon.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/client/component/rcon.cpp b/src/client/component/rcon.cpp index fad179d3..0418254a 100644 --- a/src/client/component/rcon.cpp +++ b/src/client/component/rcon.cpp @@ -57,11 +57,6 @@ namespace rcon bool rate_limit_check(const game::netadr_t& address, const int time) { - if (!rate_limit_map.contains(address)) - { - rate_limit_map[address] = 0; - } - const auto last_time = rate_limit_map[address]; if (last_time && (time - last_time) < rcon_timeout->current.value.integer)