From f59a5c0b92d667df0cff22a0d9cf4a6176364b22 Mon Sep 17 00:00:00 2001 From: Christian Paul Date: Fri, 7 Aug 2020 17:40:52 +0200 Subject: [PATCH] Fix condition with .includes() --- src/irc/BridgedClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irc/BridgedClient.ts b/src/irc/BridgedClient.ts index ed3beaf65..7f66ed7ff 100644 --- a/src/irc/BridgedClient.ts +++ b/src/irc/BridgedClient.ts @@ -465,7 +465,7 @@ export class BridgedClient extends EventEmitter { if (this.state.status !== BridgedClientStatus.CONNECTED) { return Promise.resolve(); // we were never connected to the network. } - if (Object.keys(this.state.client.chans).includes(channel)) { + if (!Object.keys(this.state.client.chans).includes(channel)) { // we were never joined to it. We need to be joined to it to kick people. return Promise.resolve(); }