diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-03-09 13:22:48 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-03-09 22:22:56 +0000 |
| commit | 39d288f99f878fcaa0f43d659815686fbee667f5 (patch) | |
| tree | d2af6fa9ef42d9887965886acdba9fd13a7e074a /modules/webcpanel | |
| parent | 9ead3f15c3256786d3c2b485a786ad32faa0a438 (diff) | |
Rename hash_map to unordered_map to match the underlying container.
Diffstat (limited to 'modules/webcpanel')
| -rw-r--r-- | modules/webcpanel/pages/index.cpp | 2 | ||||
| -rw-r--r-- | modules/webcpanel/pages/index.h | 2 |
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: |
