File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change
1
+ Fix auto reconnect due to event listeners not being called.
Original file line number Diff line number Diff line change @@ -219,12 +219,12 @@ export class Client extends (EventEmitter as unknown as new () => TypedEmitter<C
219
219
if ( opt . channelPrefixes ) {
220
220
this . state . supportedState . channel . types = opt . channelPrefixes ;
221
221
}
222
- this . state . capabilities . once ( 'serverCapabilitesReady' , ( ) => {
222
+ this . state . capabilities . on ( 'serverCapabilitesReady' , ( ) => {
223
223
this . onCapsList ( ) ;
224
224
// Flush on capabilities modified
225
225
this . state . flush ?.( ) ;
226
226
} )
227
- this . state . capabilities . once ( 'userCapabilitesReady' , ( ) => {
227
+ this . state . capabilities . on ( 'userCapabilitesReady' , ( ) => {
228
228
this . onCapsConfirmed ( ) ;
229
229
// Flush on capabilities modified
230
230
this . state . flush ?.( ) ;
You can’t perform that action at this time.
0 commit comments