send cap request as early as possible

This commit is contained in:
Liam Stanley 2017-01-19 01:56:30 -05:00
parent 78a457a532
commit 0a9c72d992

View File

@ -235,9 +235,6 @@ func (c *Client) Connect() error {
}
}
// Start read loop to process messages from the server.
go c.readLoop()
// List the IRCv3 capabilities, specifically with the max protocol we
// support.
if !c.Config.DisableTracking && !c.Config.DisableCapTracking {
@ -246,6 +243,9 @@ func (c *Client) Connect() error {
}
}
// Start read loop to process messages from the server.
go c.readLoop()
// Consider the connection a success at this point.
c.tries = 0