From 681b488fc0ebca964eddf2a54575dc41901bc520 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 5 Aug 2023 12:02:14 +0100 Subject: Update usages of stdalgo::string::equalsci to use insp::equalsci. --- src/modules/m_gateway.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_gateway.cpp') 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()); -- cgit v1.3.1-10-gc9f91