Function: erc-ctcp-query-DCC

erc-ctcp-query-DCC is an autoloaded and byte-compiled function defined in erc-dcc.el.gz.

Signature

(erc-ctcp-query-DCC PROC NICK LOGIN HOST TO QUERY)

Documentation

The function called when a CTCP DCC request is detected by the client.

It examines the DCC subcommand, and calls the appropriate routine for that subcommand.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-dcc.el.gz
;;;###autoload
(defun erc-ctcp-query-DCC (proc nick login host to query)
  "The function called when a CTCP DCC request is detected by the client.
It examines the DCC subcommand, and calls the appropriate routine for
that subcommand."
  (let* ((cmd (cadr (split-string query " ")))
         (handler (cdr (assoc cmd erc-dcc-query-handler-alist))))
    (if handler
        (funcall handler proc query nick login host to)
      ;; FIXME: Send a ctcp error notice to the remote end?
      (erc-display-message
       nil '(notice error) proc
       'dcc-ctcp-unknown
       ?q query ?n nick ?u login ?h host))))