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