Function: erc-dcc-no-such-nick
erc-dcc-no-such-nick is a byte-compiled function defined in
erc-dcc.el.gz.
Signature
(erc-dcc-no-such-nick PROC PARSED)
Documentation
Detect and handle no-such-nick replies from the IRC server.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-dcc.el.gz
(defun erc-dcc-no-such-nick (proc parsed)
"Detect and handle no-such-nick replies from the IRC server."
(let* ((elt (erc-dcc-member :nick (nth 1 (erc-response.command-args parsed))
:parent proc))
(peer (plist-get elt :peer)))
(when (or (and (processp peer) (not (eq (process-status peer) 'open)))
elt)
;; Since we already created an entry before sending the CTCP
;; message, we now remove it, if it doesn't point to a process
;; which is already open.
(setq erc-dcc-list (delq elt erc-dcc-list))
(if (processp peer) (delete-process peer)))
nil))