aboutsummaryrefslogtreecommitdiffstats
path: root/modules/websocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/websocket.cpp')
-rw-r--r--modules/websocket.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/websocket.cpp b/modules/websocket.cpp
index d0f035b72..cdc087611 100644
--- a/modules/websocket.cpp
+++ b/modules/websocket.cpp
@@ -472,8 +472,12 @@ class WebSocketHook final
{
std::erase_if(proto, ::isspace);
- auto is_binary = insp::equalsci(proto, "binary.ircv3.net");
- auto is_text = insp::equalsci(proto, "text.ircv3.net");
+ auto is_binary = (sock->type == StreamSocket::SS_USER && insp::equalsci(proto, "binary.ircv3.net"))
+ || insp::equalsci(proto, "binary.inspircd.org");
+
+ auto is_text = (sock->type == StreamSocket::SS_USER && insp::equalsci(proto, "text.ircv3.net"))
+ || insp::equalsci(proto, "text.inspircd.org");
+
if (is_binary || is_text)
{
selectedproto = std::move(proto);