summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-09 13:22:48 +0000
committerSadie Powell <sadie@witchery.services>2024-03-09 22:22:56 +0000
commit39d288f99f878fcaa0f43d659815686fbee667f5 (patch)
treed2af6fa9ef42d9887965886acdba9fd13a7e074a /modules
parent9ead3f15c3256786d3c2b485a786ad32faa0a438 (diff)
Rename hash_map to unordered_map to match the underlying container.
Diffstat (limited to 'modules')
-rw-r--r--modules/chanserv/cs_seen.cpp2
-rw-r--r--modules/nickserv/ns_cert.cpp4
-rw-r--r--modules/webcpanel/pages/index.cpp2
-rw-r--r--modules/webcpanel/pages/index.h2
4 files changed, 5 insertions, 5 deletions
diff --git a/modules/chanserv/cs_seen.cpp b/modules/chanserv/cs_seen.cpp
index e18434d3e..183cd5e05 100644
--- a/modules/chanserv/cs_seen.cpp
+++ b/modules/chanserv/cs_seen.cpp
@@ -19,7 +19,7 @@ enum TypeInfo
static bool simple;
struct SeenInfo;
static SeenInfo *FindInfo(const Anope::string &nick);
-typedef Anope::hash_map<SeenInfo *> database_map;
+typedef Anope::unordered_map<SeenInfo *> database_map;
database_map database;
struct SeenInfo final
diff --git a/modules/nickserv/ns_cert.cpp b/modules/nickserv/ns_cert.cpp
index 0eeb5f68b..1c9d0ae80 100644
--- a/modules/nickserv/ns_cert.cpp
+++ b/modules/nickserv/ns_cert.cpp
@@ -12,7 +12,7 @@
#include "module.h"
#include "modules/ns_cert.h"
-static Anope::hash_map<NickCore *> certmap;
+static Anope::unordered_map<NickCore *> certmap;
struct CertServiceImpl final
: CertService
@@ -21,7 +21,7 @@ struct CertServiceImpl final
NickCore *FindAccountFromCert(const Anope::string &cert) override
{
- Anope::hash_map<NickCore *>::iterator it = certmap.find(cert);
+ Anope::unordered_map<NickCore *>::iterator it = certmap.find(cert);
if (it != certmap.end())
return it->second;
return NULL;
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: