Modified connect_irc_network() to be CAP compatible