erc-server-connect-function

erc-server-connect-function is a variable defined in `erc-backend.el'.
Its value is
open-network-stream

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

Documentation:
Function used to initiate a connection.
It should take same arguments as `open-network-stream' does.

You can customize this variable.