Function: erc-dcc-do-SEND-command

erc-dcc-do-SEND-command is a byte-compiled function defined in erc-dcc.el.gz.

Signature

(erc-dcc-do-SEND-command PROC NICK &rest FILE)

Documentation

Offer FILE to NICK by sending a ctcp dcc send message.

If FILE is split into multiple arguments, re-join the arguments, separated by a space.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-dcc.el.gz
(defun erc-dcc-do-SEND-command (proc nick &rest file)
  "Offer FILE to NICK by sending a ctcp dcc send message.
If FILE is split into multiple arguments, re-join the arguments,
separated by a space."
  (setq file (and file (mapconcat #'identity file " ")))
  (if (file-exists-p file)
      (progn
        (erc-display-message
         nil 'notice 'active
         'dcc-send-offer ?n nick ?f file)
        (erc-dcc-send-file nick file) t)
    (erc-display-message nil '(notice error) proc "File not found") t))