summaryrefslogtreecommitdiff
path: root/modules/webcpanel
diff options
context:
space:
mode:
Diffstat (limited to 'modules/webcpanel')
-rw-r--r--modules/webcpanel/pages/index.cpp2
-rw-r--r--modules/webcpanel/pages/index.h2
2 files changed, 2 insertions, 2 deletions
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<time_t>::iterator it = last_login_attempt.find(ip);
+ Anope::unordered_map<time_t>::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<time_t> last_login_attempt;
+ Anope::unordered_map<time_t> last_login_attempt;
time_t last_clear = 0;
public: