Function: erc-nickserv-identify-autodetect
erc-nickserv-identify-autodetect is a byte-compiled function defined
in erc-services.el.gz.
Signature
(erc-nickserv-identify-autodetect PROC PARSED)
Documentation
Identify to NickServ when an identify request is received.
Make sure it is the real NickServ for this network.
If erc-prompt-for-nickserv-password is non-nil, prompt the user for the
password for this nickname, otherwise try to send it automatically.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-services.el.gz
(defun erc-nickserv-identify-autodetect (_proc parsed)
"Identify to NickServ when an identify request is received.
Make sure it is the real NickServ for this network.
If `erc-prompt-for-nickserv-password' is non-nil, prompt the user for the
password for this nickname, otherwise try to send it automatically."
(unless (and (null erc-nickserv-passwords)
(null erc-prompt-for-nickserv-password)
(null erc-use-auth-source-for-nickserv-password))
(let* ((network (erc-network))
(sender (erc-nickserv-alist-sender network))
(identify-regex (erc-nickserv-alist-regexp network))
(sspec (erc-response.sender parsed))
(nick (car (erc-response.command-args parsed)))
(msg (erc-response.contents parsed)))
;; continue only if we're sure it's the real nickserv for this network
;; and it's asked us to identify
(when (and sender (equal sspec sender)
identify-regex
(string-match identify-regex msg))
(erc-log "NickServ IDENTIFY request detected")
(erc-nickserv-identify nil nick)
nil))))