Variable: erc-sasl-auth-source-function
erc-sasl-auth-source-function is a customizable variable defined in
erc-sasl.el.gz.
Value
nil
Documentation
Function to query auth-source for an SASL password.
If provided, this function should expect to be called with any
number of keyword params known to auth-source-search, even
though ERC itself only specifies :user paired with a
"resolved" erc-sasl-user value. When calling this function,
ERC binds all options defined in this library, such as
erc-sasl-password, to their values from entry-point invocation.
In return, ERC expects a string to send as the SASL password, or
nil, in which case, ERC prompts for input. See Info node (erc)
auth-source for details on ERC's auth-source integration.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-sasl.el.gz
(defcustom erc-sasl-auth-source-function nil
"Function to query auth-source for an SASL password.
If provided, this function should expect to be called with any
number of keyword params known to `auth-source-search', even
though ERC itself only specifies `:user' paired with a
\"resolved\" `erc-sasl-user' value. When calling this function,
ERC binds all options defined in this library, such as
`erc-sasl-password', to their values from entry-point invocation.
In return, ERC expects a string to send as the SASL password, or
nil, in which case, ERC prompts for input. See Info node `(erc)
auth-source' for details on ERC's auth-source integration."
:type '(choice (function-item erc-sasl-auth-source-password-as-host)
(function-item erc-auth-source-search)
(const nil)
function))