send cap request as early as possible
This commit is contained in:
parent
78a457a532
commit
0a9c72d992
@ -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
|
// List the IRCv3 capabilities, specifically with the max protocol we
|
||||||
// support.
|
// support.
|
||||||
if !c.Config.DisableTracking && !c.Config.DisableCapTracking {
|
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.
|
// Consider the connection a success at this point.
|
||||||
c.tries = 0
|
c.tries = 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user