message: Add metadata for various SASL failures
diff: @@ -799,6 +799,29 @@ export class BridgedClient extends EventEmitter {
  }
  identResolver();
  });
  + // Emitters for SASL
  + connInst.client.on("sasl_loggedin", (...args: string[]) => {
  + const msg = args.pop();
  + this.eventBroker.sendMetadata(this,
  + `SASL authentication successful: ${msg}`
  + );
  + })
  + // Emitters for SASL
  + connInst.client.on("sasl_loggedout", (...args: string[]) => {
  + const msg = args.pop();
  + this.eventBroker.sendMetadata(this,
  + `Authentication has expired: ${msg}`,
  + true,
  + );
  + });
  + // Emitters for SASL
  + connInst.client.on("sasl_error", (errType: string, _nickname: string, errorMsg: string) => {
  + this.eventBroker.sendMetadata(this,
  + "There was an error authenticating you over SASL. " +
  + "You may need to update your details and !reconnect. " +
  + `The error was: ${errType} ${errorMsg}`
  + );
  + });
  connInst.onDisconnect = (reason) => {
  this._disconnectReason = reason;
  