From 888bc53cb8f95ea361622c1730342d0a17517d69 Mon Sep 17 00:00:00 2001 From: emerson Date: Tue, 7 Dec 2021 10:37:07 -0500 Subject: [PATCH] fix cap negotation --- src/Client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.ts b/src/Client.ts index dd1b640..81c0fa9 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -138,7 +138,7 @@ export class Client { const capsToChange = (message.params[1].indexOf(' ') === -1) ? [message.params[1]] : message.params[1].split(' '); const capsEnabled: string[] = []; capsToChange.forEach(cap => { - if (this.allCaps.get(cap)) { + if (this.allCaps.has(cap)) { this.enabledCaps.set(cap, ''); capsEnabled.push(cap); }