Skip to content

Commit

Permalink
Fix for reconnection issue (capabilities listeners were listening 'on…
Browse files Browse the repository at this point in the history
…ce')
  • Loading branch information
aabluedragon authored Aug 27, 2024
1 parent e7226a4 commit 620c112
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/irc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,12 @@ export class Client extends (EventEmitter as unknown as new () => TypedEmitter<C
if (opt.channelPrefixes) {
this.state.supportedState.channel.types = opt.channelPrefixes;
}
this.state.capabilities.once('serverCapabilitesReady', () => {
this.state.capabilities.on('serverCapabilitesReady', () => {
this.onCapsList();
// Flush on capabilities modified
this.state.flush?.();
})
this.state.capabilities.once('userCapabilitesReady', () => {
this.state.capabilities.on('userCapabilitesReady', () => {
this.onCapsConfirmed();
// Flush on capabilities modified
this.state.flush?.();
Expand Down

0 comments on commit 620c112

Please sign in to comment.