Function: erc-toggle-flood-control

erc-toggle-flood-control is an interactive and byte-compiled function defined in erc.el.gz.

Signature

(erc-toggle-flood-control &optional ARG)

Documentation

Toggle use of flood control on sent messages.

If ARG is positive, use flood control. If ARG is non-nil and not positive, do not use flood control.

See erc-server-flood-margin for an explanation of the available flood control parameters.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-toggle-flood-control (&optional arg)
  "Toggle use of flood control on sent messages.

If ARG is positive, use flood control.
If ARG is non-nil and not positive, do not use flood control.

See `erc-server-flood-margin' for an explanation of the available
flood control parameters."
  (interactive "P")
  (cond ((and (numberp arg) (> arg 0))
         (setq erc-flood-protect t))
        (arg (setq erc-flood-protect nil))
        (t (setq erc-flood-protect (not erc-flood-protect))))
  (message "ERC flood control is %s"
           (cond (erc-flood-protect "ON")
                 (t "OFF"))))