aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_websocket.cpp
diff options
context:
space:
mode:
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");