Variable: erc-insert-pre-hook

erc-insert-pre-hook is a customizable variable defined in erc.el.gz.

Value

nil

Documentation

Hook called first when some text is inserted through erc-display-line.

It gets called with one argument, STRING. To be able to modify the inserted text, use erc-insert-modify-hook instead. Filtering functions can set erc-insert-this to nil to avoid display of that particular string at all.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defcustom erc-insert-pre-hook nil
  "Hook called first when some text is inserted through `erc-display-line'.
It gets called with one argument, STRING.
To be able to modify the inserted text, use `erc-insert-modify-hook' instead.
Filtering functions can set `erc-insert-this' to nil to avoid
display of that particular string at all."
  :group 'erc-hooks
  :type 'hook)