aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_websocket.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-07-16 19:32:14 +0100
committerGravatar Sadie Powell2024-07-16 19:32:14 +0100
commitafd5d9c38bcd491a49e29a6d4bef00d86212ab50 (patch)
tree7cd93bee1ff1d983ad7246c8cdeee68199c49ced /src/modules/m_websocket.cpp
parentRemove testssl. (diff)
Migrate from erase(remove_if) to erase_if.
Diffstat (limited to 'src/modules/m_websocket.cpp')
-rw-r--r--src/modules/m_websocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_websocket.cpp b/src/modules/m_websocket.cpp
index 2c00dec17..8119f30c6 100644
--- a/src/modules/m_websocket.cpp
+++ b/src/modules/m_websocket.cpp
@@ -466,7 +466,7 @@ class WebSocketHook final
irc::commasepstream protostream(protocolheader.ExtractValue(recvq));
for (std::string proto; protostream.GetToken(proto); )
{
- proto.erase(std::remove_if(proto.begin(), proto.end(), ::isspace), proto.end());
+ std::erase_if(proto, ::isspace);
bool is_binary = insp::equalsci(proto, "binary.inspircd.org");
bool is_text = insp::equalsci(proto, "text.inspircd.org");