diff options
| author | 2024-08-04 12:43:32 +0100 | |
|---|---|---|
| committer | 2024-08-04 12:43:32 +0100 | |
| commit | 46761d46ff3493328cc96df6344677e6d70c4002 (patch) | |
| tree | 6122df63aaf89872b547161c896d5e0e542e6052 /modules/websocket.cpp | |
| parent | Merge branch 'insp4' into master. (diff) | |
| parent | Fix 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.cpp | 8 |
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); |
