Variable: erc-pre-send-functions
erc-pre-send-functions is a customizable variable defined in
erc.el.gz.
Value
nil
Documentation
Special hook run to possibly alter the string that is sent.
The functions are called with one argument, an erc-input struct,
and should alter that struct.
The struct has three slots:
string: The current input string.
insertp: Whether the string should be inserted into the erc buffer.
sendp: Whether the string should be sent to the irc server.
This variable was added, or its default value changed, in Emacs 27.1.
Probably introduced at or before Emacs version 27.1.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defcustom erc-pre-send-functions nil
"Special hook run to possibly alter the string that is sent.
The functions are called with one argument, an `erc-input' struct,
and should alter that struct.
The struct has three slots:
`string': The current input string.
`insertp': Whether the string should be inserted into the erc buffer.
`sendp': Whether the string should be sent to the irc server."
:group 'erc
:type 'hook
:version "27.1")