Function: erc--send-message-nested
erc--send-message-nested is a byte-compiled function defined in
erc.el.gz.
Signature
(erc--send-message-nested INPUT-LINE FORCE)
Documentation
Process string INPUT-LINE almost as if it's normal chat input.
Expect INPUT-LINE to differ from the string slot of the calling
context's erc--current-line-input-split object because the
latter is likely a slash command invocation whose handler
generated INPUT-LINE. Before inserting INPUT-LINE, split it and
run erc-send-modify-hook and erc-send-post-hook on each
actual outgoing line. Forgo input validation because this isn't
interactive input, and skip erc-send-completed-hook because it
will run just before the outer erc-send-current-line call
returns.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc--send-message-nested (input-line force)
"Process string INPUT-LINE almost as if it's normal chat input.
Expect INPUT-LINE to differ from the `string' slot of the calling
context's `erc--current-line-input-split' object because the
latter is likely a slash command invocation whose handler
generated INPUT-LINE. Before inserting INPUT-LINE, split it and
run `erc-send-modify-hook' and `erc-send-post-hook' on each
actual outgoing line. Forgo input validation because this isn't
interactive input, and skip `erc-send-completed-hook' because it
will run just before the outer `erc-send-current-line' call
returns."
(let* ((erc-flood-protect (not force))
(lines-obj (erc--make-input-split input-line)))
(setf (erc--input-split-refoldp lines-obj) t
(erc--input-split-cmdp lines-obj) nil)
(erc--send-input-lines (erc--run-send-hooks lines-obj)))
t)