mirror of
https://github.com/ergochat/ergo.git
synced 2026-01-10 04:12:06 -08:00
capability: Add 3.2 CAP values
This commit is contained in:
parent
9162d0da61
commit
e643c2101f
3 changed files with 40 additions and 12 deletions
|
|
@ -33,6 +33,7 @@ type Client struct {
|
|||
awayMessage string
|
||||
capabilities CapabilitySet
|
||||
capState CapState
|
||||
capVersion CapVersion
|
||||
certfp string
|
||||
channels ChannelSet
|
||||
ctime time.Time
|
||||
|
|
@ -64,8 +65,9 @@ func NewClient(server *Server, conn net.Conn, isTLS bool) *Client {
|
|||
client := &Client{
|
||||
atime: now,
|
||||
authorized: server.password == nil,
|
||||
capState: CapNone,
|
||||
capabilities: make(CapabilitySet),
|
||||
capState: CapNone,
|
||||
capVersion: Cap301,
|
||||
channels: make(ChannelSet),
|
||||
ctime: now,
|
||||
flags: make(map[UserMode]bool),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue