1
0
Fork 0
forked from External/ergo

Initial METADATA work. Subs are totally broken and SYNC returns wrong data

This commit is contained in:
Daniel Oaks 2018-04-13 20:05:51 +10:00
parent b77a378ddf
commit 2eb2467de2
10 changed files with 524 additions and 2 deletions

View file

@ -60,6 +60,7 @@ type Client struct {
languages []string
maxlenTags uint32
maxlenRest uint32
metadata *MetadataManager
nick string
nickCasefolded string
nickMaskCasefolded string
@ -100,6 +101,7 @@ func NewClient(server *Server, conn net.Conn, isTLS bool) *Client {
channels: make(ChannelSet),
ctime: now,
flags: make(map[modes.Mode]bool),
metadata: NewMetadataManager(),
server: server,
socket: &socket,
nick: "*", // * is used until actual nick is given