Function: erc-sasl-auth-source-password-as-host
erc-sasl-auth-source-password-as-host is a byte-compiled function
defined in erc-sasl.el.gz.
Signature
(erc-sasl-auth-source-password-as-host &rest PLIST)
Documentation
Call erc-auth-source-search with erc-sasl-password as :host.
But only do so when it's a string or a non-nil symbol, unless
that symbol is :password, in which case, use a non-nil
erc-session-password instead. Otherwise, just defer to
erc-auth-source-search to pick a suitable :host. Expect
PLIST to contain keyword params known to auth-source-search.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-sasl.el.gz
(defun erc-sasl-auth-source-password-as-host (&rest plist)
"Call `erc-auth-source-search' with `erc-sasl-password' as `:host'.
But only do so when it's a string or a non-nil symbol, unless
that symbol is `:password', in which case, use a non-nil
`erc-session-password' instead. Otherwise, just defer to
`erc-auth-source-search' to pick a suitable `:host'. Expect
PLIST to contain keyword params known to `auth-source-search'."
(when erc-sasl-password
(when-let ((host (if (eq :password erc-sasl-password)
(and (not (functionp erc-session-password))
erc-session-password)
erc-sasl-password)))
(setq plist `(,@plist :host ,(format "%s" host)))))
(apply #'erc-auth-source-search plist))