mirror of
https://git.sr.ht/~emerson/reflectionircd
synced 2025-08-05 16:59:10 +00:00
fix cap negotation
This commit is contained in:
parent
1af94c40b2
commit
888bc53cb8
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ export class Client {
|
||||||
const capsToChange = (message.params[1].indexOf(' ') === -1) ? [message.params[1]] : message.params[1].split(' ');
|
const capsToChange = (message.params[1].indexOf(' ') === -1) ? [message.params[1]] : message.params[1].split(' ');
|
||||||
const capsEnabled: string[] = [];
|
const capsEnabled: string[] = [];
|
||||||
capsToChange.forEach(cap => {
|
capsToChange.forEach(cap => {
|
||||||
if (this.allCaps.get(cap)) {
|
if (this.allCaps.has(cap)) {
|
||||||
this.enabledCaps.set(cap, '');
|
this.enabledCaps.set(cap, '');
|
||||||
capsEnabled.push(cap);
|
capsEnabled.push(cap);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue