Function: erc-nickserv-identify
erc-nickserv-identify is an autoloaded, interactive and byte-compiled
function defined in erc-services.el.gz.
Signature
(erc-nickserv-identify &optional PASSWORD NICK)
Documentation
Identify to NickServ immediately.
For authenticating, use NICK or erc-current-nick and PASSWORD or one
obtained via erc-nickserv-get-password. If a password can't be found,
tell erc-error. Return t if a message was sent, nil otherwise.
Interactively, prompt for NICK, interpreting an empty string as the
current nick.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-services.el.gz
;;;###autoload
(defun erc-nickserv-identify (&optional password nick)
"Identify to NickServ immediately.
For authenticating, use NICK or `erc-current-nick' and PASSWORD or one
obtained via `erc-nickserv-get-password'. If a password can't be found,
tell `erc-error'. Return t if a message was sent, nil otherwise.
Interactively, prompt for NICK, interpreting an empty string as the
current nick."
(interactive
(list
nil
(read-from-minibuffer "Nickname: " nil nil nil
'erc-nick-history-list (erc-current-nick))))
(unless (and nick (not (string= nick "")))
(setq nick (erc-current-nick)))
(unless password
(setq password (erc-nickserv-get-password nick)))
(if password
(progn (erc-nickserv-send-identify nick password) t)
(erc-error "Cannot find a password for nickname %s"
nick)
nil))