code: func (conn *Conn) Connected() bool {
  	conn.mu.RLock()
  	defer conn.mu.RUnlock()
  	return conn.connected
  }
docs: // Connected returns true if the client is successfully connected to
  // an IRC server. It becomes true when the TCP connection is established,
  // and false again when the connection is closed.