Variable: erc-auth-source-server-function
erc-auth-source-server-function is a customizable variable defined in
erc.el.gz.
Value
erc-auth-source-search
Documentation
Function to query auth-source for a server password.
Called with a subset of keyword parameters known to
auth-source-search and relevant to an opening "PASS" command,
if any. In return, ERC expects a string to send as the server
password, or nil, to skip the "PASS" command completely. An
explicit :password argument to entry-point commands erc and
erc-tls also inhibits lookup, as does setting this option to
nil. See Info node (erc) auth-source for details.
This variable was added, or its default value changed, in ERC version
5.5.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defcustom erc-auth-source-server-function #'erc-auth-source-search
"Function to query auth-source for a server password.
Called with a subset of keyword parameters known to
`auth-source-search' and relevant to an opening \"PASS\" command,
if any. In return, ERC expects a string to send as the server
password, or nil, to skip the \"PASS\" command completely. An
explicit `:password' argument to entry-point commands `erc' and
`erc-tls' also inhibits lookup, as does setting this option to
nil. See Info node `(erc) auth-source' for details."
:package-version '(ERC . "5.5")
:group 'erc
:type '(choice (function-item erc-auth-source-search)
(const nil)
function))