From 336ff377c320ccea89e6ce79c8de84c0d823d50f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 12 Jun 2020 18:56:08 +0200 Subject: [PATCH] Request message-tags cap --- assets/client.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/assets/client.js b/assets/client.js index a57a31a..1538df3 100644 --- a/assets/client.js +++ b/assets/client.js @@ -223,8 +223,12 @@ function handleCap(msg) { capEnd = false; } + if (availableCaps["message-tags"] !== undefined) { + reqCaps.push("message-tags"); + } + if (reqCaps.length > 0) { - sendMessage({ command: "CAP", params: ["REQ"].concat(reqCaps) }); + sendMessage({ command: "CAP", params: ["REQ", reqCaps.join(" ")] }); } if (!registered && capEnd) {