always initialize handlers

This commit is contained in:
Evert Prants 2022-09-24 14:01:45 +03:00
parent 280c8a5e2f
commit 28348b8f38
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -13,12 +13,7 @@ export class IRCNickList extends TypedEventEmitter<NickListEvents> {
constructor(public irc: IRCConnectionWrapper) {
super();
if (this.irc.authenticated) {
this.handlers();
}
this.irc.on('authenticated', () => this.handlers());
this.handlers();
}
/**