erc-connect-pre-hook

erc-connect-pre-hook is a variable defined in `erc.el'.
Its value is
(erc-track-minor-mode-maybe erc-initialize-log-marker)

Original value was
(erc-initialize-log-marker)

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

Documentation:
Hook called just before `erc' calls `erc-connect'.
Functions are passed a buffer as the first argument.

You can customize this variable.