Some basic irc connection logic