Variable: erc-send-input-line-function
erc-send-input-line-function is a buffer-local variable defined in
erc.el.gz.
Documentation
Function for sending lines lacking a leading "slash" command.
When prompt input starts with a "slash" command, like "/MSG",
ERC calls a corresponding handler, like erc-cmd-MSG. But
normal "chat" input also needs processing, for example, to
convert it into a proper IRC command. ERC calls this variable's
value to perform that task, which, by default, simply involves
constructing a "PRIVMSG" with the current channel or query
partner as the target. Some libraries, like erc-dcc, use this
for other purposes.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defvar-local erc-send-input-line-function #'erc-send-input-line
"Function for sending lines lacking a leading \"slash\" command.
When prompt input starts with a \"slash\" command, like \"/MSG\",
ERC calls a corresponding handler, like `erc-cmd-MSG'. But
normal \"chat\" input also needs processing, for example, to
convert it into a proper IRC command. ERC calls this variable's
value to perform that task, which, by default, simply involves
constructing a \"PRIVMSG\" with the current channel or query
partner as the target. Some libraries, like `erc-dcc', use this
for other purposes.")