aboutsummaryrefslogtreecommitdiff
path: root/src/socket.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/socket.cpp
parentMove stdalgo::string::{equalsci,tocstr} to utility/string. (diff)
Update usages of stdalgo::string::equalsci to use insp::equalsci.
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp7
1 files changed, 4 insertions, 3 deletions
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
}