Functions to connect to irc.