Variable: erc-accidental-paste-threshold-seconds

erc-accidental-paste-threshold-seconds is a customizable variable defined in erc.el.gz.

Value

0.2

Documentation

Minimum time, in seconds, before sending new lines via IRC.

If the value is a number, erc-send-current-line signals an error if its previous invocation was fewer than this many seconds ago. This is useful so that if you accidentally enter large amounts of text into the ERC buffer, that text is not sent to the IRC server.

If the value is nil, erc-send-current-line always considers any submitted line to be intentional.

This variable was added, or its default value changed, in Emacs 26.1.

Probably introduced at or before Emacs version 24.4.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defcustom erc-accidental-paste-threshold-seconds 0.2
  "Minimum time, in seconds, before sending new lines via IRC.
If the value is a number, `erc-send-current-line' signals an error
if its previous invocation was fewer than this many seconds ago.
This is useful so that if you accidentally enter large amounts of text
into the ERC buffer, that text is not sent to the IRC server.

If the value is nil, `erc-send-current-line' always considers any
submitted line to be intentional."
  :group 'erc
  :version "26.1"
  :type '(choice number (other :tag "disabled" nil)))