This commit is contained in:
Evert Prants 2022-09-25 11:50:30 +03:00
parent 448bd832a3
commit 5013523b88
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 3 additions and 2 deletions

View File

@ -126,6 +126,6 @@ export interface IIRCConnectorConstructor {
): IIRCConnector;
}
export interface IIRCConnetionConstructor {
export interface IIRCConnectionConstructor {
new (options: IIRCOptions, connector: IIRCConnectorConstructor): IIRCWrapper;
}

View File

@ -1,4 +1,5 @@
import { IRCConnection } from '../irc';
import { IIRCWrapper } from '../types/impl.interface';
import { INickServOptions } from '../types/irc.interfaces';
import { Collector } from './collector';
@ -35,7 +36,7 @@ export class NickServCollector extends Collector {
export class NickServValidator {
public nickservStore: { [key: string]: INickStore } = {};
constructor(public irc: IRCConnection) {
constructor(public irc: IIRCWrapper) {
this.irc.on('leave', ({ nickname }) => {
if (this.nickservStore[nickname]) {
delete this.nickservStore[nickname];