summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-10-01 22:59:05 +0200
committerSébastien Helleu <flashcode@flashtux.org>2018-10-01 22:59:05 +0200
commitecdbaef2886b8318e7b15bdac480df43a8b49a9c (patch)
tree09ba71c7f66f2c745437a7061a5d59ed77fbed65 /src/plugins
parent4b58ea37c0394717f51a83920ee05a40371a2fb7 (diff)
downloadweechat-ecdbaef2886b8318e7b15bdac480df43a8b49a9c.zip
relay: remove useless test on length
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/relay/relay-websocket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/relay/relay-websocket.c b/src/plugins/relay/relay-websocket.c
index 6d31cb8c8..bbac751dc 100644
--- a/src/plugins/relay/relay-websocket.c
+++ b/src/plugins/relay/relay-websocket.c
@@ -368,7 +368,7 @@ relay_websocket_encode_frame (int opcode,
frame[1] = length;
index = 2;
}
- else if ((length >= 126) && (length <= 65535))
+ else if (length <= 65535)
{
/* length on 2 bytes */
frame[1] = 126;