aboutsummaryrefslogtreecommitdiffstats
path: root/modules/gateway.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-04-30 22:29:38 +0100
committerGravatar Sadie Powell2026-04-30 23:20:14 +0100
commit9bb55626d51f217466bc08104d2f32eb0bf57c02 (patch)
tree44d8c00b97674cd4e35c5a1def208047bf02bcfa /modules/gateway.cpp
parentMove CommandLine from ServerConfig to InspIRCd. (diff)
Switch ascii comparisons over to our own casemap functions.
Diffstat (limited to 'modules/gateway.cpp')
-rw-r--r--modules/gateway.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gateway.cpp b/modules/gateway.cpp
index 7118a6dd5..f1715f413 100644
--- a/modules/gateway.cpp
+++ b/modules/gateway.cpp
@@ -392,13 +392,13 @@ public:
// Determine what lookup type this host uses.
const std::string type = tag->getString("type");
- if (insp::equalsci(type, "username") || insp::equalsci(type, "ident"))
+ if (insp::ascii_equals(type, "username") || insp::ascii_equals(type, "ident"))
{
// The IP address should be looked up from the hex IP address.
const std::string newuser = tag->getString("newusername", "gateway", ServerInstance->Users.IsUser);
userhosts.emplace_back(masks, newuser);
}
- else if (insp::equalsci(type, "webirc"))
+ else if (insp::ascii_equals(type, "webirc"))
{
// The IP address will be received via the WEBIRC command.
const std::string fingerprint = tag->getString("fingerprint");
@@ -410,7 +410,7 @@ public:
if (fingerprint.empty() && password.empty())
throw ModuleException(weak_from_this(), "When using <" + tag->name + " type=\"webirc\"> either the fingerprint or password field is required, at " + tag->source.str());
- if (!password.empty() && insp::equalsci(passwordhash, "plaintext"))
+ if (!password.empty() && insp::ascii_equals(passwordhash, "plaintext"))
{
ServerInstance->Logs.Normal(MODNAME, "<{}> tag at {} contains an plain text password, this is insecure!",
tag->name, tag->source.str());