aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_gateway.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-08-05 12:02:14 +0100
committerGravatar Sadie Powell2023-08-11 12:03:09 +0100
commit681b488fc0ebca964eddf2a54575dc41901bc520 (patch)
tree8d5953e1ecc38e7abc8e4369e71a2f3db2a1744a /src/modules/m_gateway.cpp
parentMove stdalgo::string::{equalsci,tocstr} to utility/string. (diff)
Update usages of stdalgo::string::equalsci to use insp::equalsci.
Diffstat (limited to 'src/modules/m_gateway.cpp')
-rw-r--r--src/modules/m_gateway.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_gateway.cpp b/src/modules/m_gateway.cpp
index 2e256f9e9..33e2f10f7 100644
--- a/src/modules/m_gateway.cpp
+++ b/src/modules/m_gateway.cpp
@@ -369,13 +369,13 @@ public:
// Determine what lookup type this host uses.
const std::string type = tag->getString("type");
- if (stdalgo::string::equalsci(type, "username") || stdalgo::string::equalsci(type, "ident"))
+ if (insp::equalsci(type, "username") || insp::equalsci(type, "ident"))
{
// The IP address should be looked up from the hex IP address.
const std::string newuser = tag->getString("newusername", tag->getString("newident", "gateway", ServerInstance->IsUser), ServerInstance->IsUser);
userhosts.emplace_back(masks, newuser);
}
- else if (stdalgo::string::equalsci(type, "webirc"))
+ else if (insp::equalsci(type, "webirc"))
{
// The IP address will be received via the WEBIRC command.
const std::string fingerprint = tag->getString("fingerprint");
@@ -387,7 +387,7 @@ public:
if (fingerprint.empty() && password.empty())
throw ModuleException(this, "When using <" + tag->name + " type=\"webirc\"> either the fingerprint or password field is required, at " + tag->source.str());
- if (!password.empty() && stdalgo::string::equalsci(passwordhash, "plaintext"))
+ if (!password.empty() && insp::equalsci(passwordhash, "plaintext"))
{
ServerInstance->Logs.Normal(MODNAME, "<{}> tag at {} contains an plain text password, this is insecure!",
tag->name, tag->source.str());