diff --git a/changelog.d/116.bugfix b/changelog.d/116.bugfix new file mode 100644 index 00000000..4715b249 --- /dev/null +++ b/changelog.d/116.bugfix @@ -0,0 +1 @@ +Fix auto reconnect due to event listeners not being called. diff --git a/src/irc.ts b/src/irc.ts index a85769ac..06669642 100644 --- a/src/irc.ts +++ b/src/irc.ts @@ -219,12 +219,12 @@ export class Client extends (EventEmitter as unknown as new () => TypedEmitter { + 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?.();