diff --git a/src/irc.ts b/src/irc.ts index 9d3fac87..9cb8b94a 100644 --- a/src/irc.ts +++ b/src/irc.ts @@ -63,6 +63,13 @@ export interface IrcClientOpts { floodProtectionDelay?: number; sasl?: boolean; saslType?: 'PLAIN'|'EXTERNAL'; + /** + * The account name to authenticate as via SASL PLAIN. Defaults to the connecting nick, which + * is correct for most networks/services but not guaranteed to be true everywhere (a NickServ + * account name need not match the nick in use). Set this explicitly if your network's account + * name differs from the nick. + */ + saslAccount?: string; stripColors?: boolean; channelPrefixes?: string; messageSplit?: number; @@ -940,14 +947,23 @@ export class Client extends (EventEmitter as unknown as new () => TypedEmitter