Function: erc-cmd-DCC
erc-cmd-DCC is an autoloaded and byte-compiled function defined in
erc-dcc.el.gz.
Signature
(erc-cmd-DCC LINE &rest COMPAT-ARGS)
Documentation
Parser for /dcc command.
This figures out the dcc subcommand and calls the appropriate routine to handle it. The function dispatched should be named "erc-dcc-do-FOO-command", where FOO is one of CLOSE, GET, SEND, LIST, CHAT, etc.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-dcc.el.gz
;;;###autoload
(defun erc-cmd-DCC (line &rest compat-args)
"Parser for /dcc command.
This figures out the dcc subcommand and calls the appropriate routine to
handle it. The function dispatched should be named \"erc-dcc-do-FOO-command\",
where FOO is one of CLOSE, GET, SEND, LIST, CHAT, etc."
(let (cmd args)
;; Called as library function (i.e., not directly as /dcc)
(if compat-args
(setq cmd line
args compat-args)
(setq args (delete "" (erc--split-string-shell-cmd line))
cmd (pop args)))
(let ((fn (intern-soft (concat "erc-dcc-do-" (upcase cmd) "-command"))))
(if fn
(apply fn erc-server-process args)
(erc-display-message
nil 'notice 'active
'dcc-command-undefined ?c cmd)
(apropos "erc-dcc-do-.*-command")
t))))