code: func (conn *Conn) Connect() error {
  	// We don't want to hold conn.mu while firing the REGISTER event,
  	// and it's much easier and less error prone to defer the unlock,
  	// so the connect mechanics have been delegated to internalConnect.
  	err := conn.internalConnect()
  	if err == nil {
  		conn.dispatch(&Line{Cmd: REGISTER, Time: time.Now()})
  	}
  	return err
  }
docs: // Connect connects the IRC client to the server configured in Config.Server.
  // To enable explicit SSL on the connection to the IRC server, set Config.SSL
  // to true before calling Connect(). The port will default to 6697 if SSL is
  // enabled, and 6667 otherwise.
  // To enable connecting via a proxy server, set Config.Proxy to the proxy URL
  // (example socks5://localhost:9000) before calling Connect().
  //
  // Upon successful connection, Connected will return true and a REGISTER event
  // will be fired. This is mostly for internal use; it is suggested that a
  // handler for the CONNECTED event is used to perform any initial client work
  // like joining channels and sending messages.