Function: erc-process-ctcp-reply
erc-process-ctcp-reply is a byte-compiled function defined in
erc.el.gz.
Signature
(erc-process-ctcp-reply PROC PARSED NICK LOGIN HOST MSG)
Documentation
Process MSG as a CTCP reply.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-process-ctcp-reply (proc parsed nick login host msg)
"Process MSG as a CTCP reply."
(let* ((type (car (split-string msg)))
(hook (intern-soft (concat "erc-ctcp-reply-" type "-hook")))
;; Help `erc-display-message' by ensuring subsequent
;; insertions retain the necessary props.
(cmd (erc--get-eq-comparable-cmd (erc-response.command parsed)))
(erc--msg-prop-overrides `((erc--ctcp . ,(and hook (intern type)))
(erc--cmd . ,cmd)
,@erc--msg-prop-overrides)))
(if (and hook (boundp hook))
(run-hook-with-args-until-success
hook proc nick login host
(car (erc-response.command-args parsed)) msg)
(erc-display-message
parsed 'notice 'active
'CTCP-UNKNOWN ?n nick ?u login ?h host ?m msg))))