Variable: erc--pre-send-split-functions
erc--pre-send-split-functions is an alias for
erc--input-review-functions, defined in erc.el.gz.
This variable is obsolete since 30.1; use
erc--input-review-functions instead.
Value
(erc--split-lines
erc--run-input-validation-checks
erc--discard-trailing-multiline-nulls
erc--inhibit-slash-cmd-insertion)
Documentation
Special hook for reviewing and modifying prompt input.
ERC runs this before clearing the prompt and before running any
send-related hooks, such as erc-pre-send-functions. Thus, it's
quite "safe" to bail out of this hook with a user-error, if
necessary. The hook's members are called with one argument, an
erc--input-split struct, which they can optionally modify.
The struct has five slots:
string: the original input as a read-only reference
insertp: same as in erc-pre-send-functions
sendp: same as in erc-pre-send-functions
refoldp: same as in erc-pre-send-functions
lines: a list of lines to be sent, each one a string
cmdp: whether to interpret input as a command, like /ignore
When cmdp is non-nil, all but the first line will be discarded.
Aliases
erc--pre-send-split-functions (obsolete since 30.1)