erc-after-connect is a variable defined in `erc.el'.
Its value is
(erc-autojoin-channels)
Original value was
Documentation:
Hook called after connecting to a server.
This hook gets executed when an end of MOTD has been received. All
functions in here get called with the parameters SERVER and NICK.
You can customize this variable.