mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
Misc refactoring
This commit is contained in:
parent
d854bac78e
commit
2ecec25d28
9 changed files with 55 additions and 59 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue