erc-before-connect

erc-before-connect is a variable defined in `erc.el'.
Its value is
nil


Documentation:
Hook called before connecting to a server.
This hook gets executed before `erc' actually invokes `erc-mode'
with your input data. The functions in here get called with three
parameters, SERVER, PORT and NICK.

You can customize this variable.