Request message-tags cap
This commit is contained in:
parent
d4394498a2
commit
336ff377c3
1 changed files with 5 additions and 1 deletions
|
@ -223,8 +223,12 @@ function handleCap(msg) {
|
||||||
capEnd = false;
|
capEnd = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (availableCaps["message-tags"] !== undefined) {
|
||||||
|
reqCaps.push("message-tags");
|
||||||
|
}
|
||||||
|
|
||||||
if (reqCaps.length > 0) {
|
if (reqCaps.length > 0) {
|
||||||
sendMessage({ command: "CAP", params: ["REQ"].concat(reqCaps) });
|
sendMessage({ command: "CAP", params: ["REQ", reqCaps.join(" ")] });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!registered && capEnd) {
|
if (!registered && capEnd) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue