aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_websocket.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-08-17 22:38:09 +0100
committerGravatar Sadie Powell2024-07-19 11:05:41 +0100
commitdafaa684e174d20da46a5b5c6b46e8703d39960b (patch)
tree03c658ff789d476291527794f06143834efc46c8 /src/modules/m_websocket.cpp
parentAvoid sending blank messages to users. (diff)
Implement support for the IRCv3 WebSocket subprotocol names.
Diffstat (limited to 'src/modules/m_websocket.cpp')
-rw-r--r--src/modules/m_websocket.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/m_websocket.cpp b/src/modules/m_websocket.cpp
index fc7dac40f..924f35b24 100644
--- a/src/modules/m_websocket.cpp
+++ b/src/modules/m_websocket.cpp
@@ -468,8 +468,11 @@ class WebSocketHook final
{
proto.erase(std::remove_if(proto.begin(), proto.end(), ::isspace), proto.end());
- bool is_binary = insp::equalsci(proto, "binary.inspircd.org");
- bool is_text = insp::equalsci(proto, "text.inspircd.org");
+ bool is_binary = insp::equalsci(proto, "binary.ircv3.net")
+ || insp::equalsci(proto, "binary.inspircd.org");
+
+ bool is_text = insp::equalsci(proto, "text.ircv3.net")
+ || insp::equalsci(proto, "text.inspircd.org");
if (is_binary || is_text)
{