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,14 +13,9 @@ export class IRCNickList extends TypedEventEmitter<NickListEvents> {
constructor(public irc: IRCConnectionWrapper) {
super();
if (this.irc.authenticated) {
this.handlers();
}
this.irc.on('authenticated', () => this.handlers());
}
/**
* Get my nickname
*/