Function: erc-cmd-CREQ

erc-cmd-CREQ is a byte-compiled function defined in erc-dcc.el.gz.

Signature

(erc-cmd-CREQ LINE &optional FORCE)

Documentation

Set or get the DCC chat request flag.

Possible values are: ask, auto, ignore.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-dcc.el.gz
(defun erc-cmd-CREQ (line &optional _force)
  "Set or get the DCC chat request flag.
Possible values are: ask, auto, ignore."
  (when (string-match "^\\s-*\\(auto\\|ask\\|ignore\\)?$" line)
    (let ((cmd (match-string 1 line)))
      (if (stringp cmd)
          (erc-display-message
           nil 'notice 'active
           (format "Set DCC Chat requests to %S"
                   (setq erc-dcc-chat-request (intern cmd))))
        (erc-display-message nil 'notice 'active
                             (format "DCC Chat requests are set to %S"
                                     erc-dcc-chat-request)))
      t)))