mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-25 16:48:10 -07:00
Misc refactoring
This commit is contained in:
@@ -63,3 +63,15 @@ const (
|
||||
// Cap302 refers to the IRCv3.2 CAP spec.
|
||||
Cap302 Version = 302
|
||||
)
|
||||
|
||||
// State shows whether we're negotiating caps, finished, etc for connection registration.
|
||||
type State uint
|
||||
|
||||
const (
|
||||
// NoneState means CAP hasn't been negotiated at all.
|
||||
NoneState State = iota
|
||||
// NegotiatingState means CAP is being negotiated and registration should be paused.
|
||||
NegotiatingState State = iota
|
||||
// NegotiatedState means CAP negotiation has been successfully ended and reg should complete.
|
||||
NegotiatedState State = iota
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user