From 39d288f99f878fcaa0f43d659815686fbee667f5 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 9 Mar 2024 13:22:48 +0000 Subject: Rename hash_map to unordered_map to match the underlying container. --- modules/webcpanel/pages/index.cpp | 2 +- modules/webcpanel/pages/index.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/webcpanel') diff --git a/modules/webcpanel/pages/index.cpp b/modules/webcpanel/pages/index.cpp index 204e00db1..831eb9996 100644 --- a/modules/webcpanel/pages/index.cpp +++ b/modules/webcpanel/pages/index.cpp @@ -103,7 +103,7 @@ bool WebCPanel::Index::OnRequest(HTTPProvider *server, const Anope::string &page // Rate limit check. Anope::string ip = client->clientaddr.addr(); - Anope::hash_map::iterator it = last_login_attempt.find(ip); + Anope::unordered_map::iterator it = last_login_attempt.find(ip); if (it != last_login_attempt.end()) { time_t last_time = it->second; diff --git a/modules/webcpanel/pages/index.h b/modules/webcpanel/pages/index.h index 1032b732f..e94c2061d 100644 --- a/modules/webcpanel/pages/index.h +++ b/modules/webcpanel/pages/index.h @@ -17,7 +17,7 @@ class Index final { static const int FLUSH_TIME = 60; - Anope::hash_map last_login_attempt; + Anope::unordered_map last_login_attempt; time_t last_clear = 0; public: -- cgit