mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
send proper replies for cap protocol
This commit is contained in:
parent
36602c9a3c
commit
0874692aa8
4 changed files with 39 additions and 24 deletions
|
|
@ -16,6 +16,10 @@ type Capability string
|
|||
|
||||
type CapModifier rune
|
||||
|
||||
func (mod CapModifier) String() string {
|
||||
return string(mod)
|
||||
}
|
||||
|
||||
type CapState uint
|
||||
|
||||
type CapabilitySet map[Capability]bool
|
||||
|
|
@ -25,6 +29,7 @@ func (set CapabilitySet) String() string {
|
|||
index := 0
|
||||
for capability := range set {
|
||||
strs[index] = string(capability)
|
||||
index += 1
|
||||
}
|
||||
return strings.Join(strs, " ")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue