Function: erc-xdcc-list

erc-xdcc-list is a byte-compiled function defined in erc-xdcc.el.gz.

Signature

(erc-xdcc-list PROC NICK LOGIN HOST ARGS)

Documentation

Show the contents of erc-xdcc-files via privmsg to NICK.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-xdcc.el.gz
(defun erc-xdcc-list (proc nick _login _host _args)
  "Show the contents of `erc-xdcc-files' via privmsg to NICK."
  (if (null erc-xdcc-files)
      (erc-xdcc-reply proc nick "No files offered, sorry")
    (erc-xdcc-reply proc nick "Num  Filename")
    (erc-xdcc-reply proc nick "---  -------------")
    (let ((n 0))
      (dolist (file erc-xdcc-files)
	(erc-xdcc-reply proc nick
	 (format "%02d.  %s"
		 (setq n (1+ n))
		 (erc-dcc-file-to-name file)))))))