forked from CringeStudios/gamja
Request message-tags cap
This commit is contained in:
parent
d4394498a2
commit
336ff377c3
@ -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…
x
Reference in New Issue
Block a user