always initialize handlers
This commit is contained in:
parent
280c8a5e2f
commit
28348b8f38
@ -13,12 +13,7 @@ export class IRCNickList extends TypedEventEmitter<NickListEvents> {
|
|||||||
|
|
||||||
constructor(public irc: IRCConnectionWrapper) {
|
constructor(public irc: IRCConnectionWrapper) {
|
||||||
super();
|
super();
|
||||||
|
this.handlers();
|
||||||
if (this.irc.authenticated) {
|
|
||||||
this.handlers();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.irc.on('authenticated', () => this.handlers());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user