aboutsummaryrefslogtreecommitdiff
path: root/modules/websocket.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-08-04 12:43:32 +0100
committerGravatar Sadie Powell2024-08-04 12:43:32 +0100
commit46761d46ff3493328cc96df6344677e6d70c4002 (patch)
tree6122df63aaf89872b547161c896d5e0e542e6052 /modules/websocket.cpp
parentMerge branch 'insp4' into master. (diff)
parentFix the pgsql module showing duplicate packages on Ubuntu. (diff)
Merge branch 'insp4' into master.
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);