erc-insert-modify-hook

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

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

Original value was

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

Documentation:
Insertion hook for functions that will change the text's appearance.
This hook is called just after `erc-insert-pre-hook' when the value
of `erc-insert-this' is t.
While this hook is run, narrowing is in effect and `current-buffer' is
the buffer where the text got inserted. One possible value to add here
is `erc-fill'.

You can customize this variable.