erc-send-modify-hook

erc-send-modify-hook is a variable defined in `erc.el'.
Its value is

(erc-controls-highlight erc-fill erc-button-add-buttons erc-add-timestamp)

Original value was

  • This variable may be risky if used as a file-local variable.

Documentation:
Sending hook for functions that will change the text's appearance.
This hook is called just after `erc-send-pre-hook' when the values
of `erc-send-this' and `erc-insert-this' are both t.
While this hook is run, narrowing is in effect and `current-buffer' is
the buffer where the text got inserted.

Note that no function in this hook can change the appearance of the
text that is sent. Only changing the sent text's appearance on the
sending user's screen is possible. One possible value to add here
is `erc-fill'.

You can customize this variable.