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/socket.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index 12f9fabda..c944a06ef 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -32,6 +32,7 @@ #endif #include "inspircd.h" +#include "utility/string.h" namespace { @@ -141,7 +142,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports) irc::spacesepstream protostream(tag->getString("protocols", "all", 1)); for (std::string protocol; protostream.GetToken(protocol); ) { - if (stdalgo::string::equalsci(protocol, "all")) + if (insp::equalsci(protocol, "all")) { protocols.push_back(0); // IPPROTO_TCP #ifdef IPPROTO_SCTP @@ -149,7 +150,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports) protocols.push_back(IPPROTO_SCTP); #endif } - else if (stdalgo::string::equalsci(protocol, "sctp")) + else if (insp::equalsci(protocol, "sctp")) { #ifdef IPPROTO_SCTP protocols.push_back(IPPROTO_SCTP); @@ -157,7 +158,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports) failed_ports.emplace_back("Platform does not support SCTP", tag); #endif } - else if (stdalgo::string::equalsci(protocol, "tcp")) + else if (insp::equalsci(protocol, "tcp")) { protocols.push_back(0); // IPPROTO_TCP } -- cgit v1.3.1-10-gc9f91