Skip to content

Commit

Permalink
Fix condition with .includes()
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Paul authored Aug 7, 2020
1 parent 5af919c commit f59a5c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/irc/BridgedClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit f59a5c0

Please sign in to comment.