mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 18:52:41 +01:00
client: Fix minor bug when doing SASL before NICK/USER
This commit is contained in:
parent
32b328f53f
commit
5d7d510348
@ -61,17 +61,18 @@ func NewClient(server *Server, conn net.Conn, isTLS bool) *Client {
|
||||
now := time.Now()
|
||||
socket := NewSocket(conn)
|
||||
client := &Client{
|
||||
atime: now,
|
||||
authorized: server.password == nil,
|
||||
capState: CapNone,
|
||||
capabilities: make(CapabilitySet),
|
||||
channels: make(ChannelSet),
|
||||
ctime: now,
|
||||
flags: make(map[UserMode]bool),
|
||||
server: server,
|
||||
socket: &socket,
|
||||
account: &NoAccount,
|
||||
nickString: "*", // * is used until actual nick is given
|
||||
atime: now,
|
||||
authorized: server.password == nil,
|
||||
capState: CapNone,
|
||||
capabilities: make(CapabilitySet),
|
||||
channels: make(ChannelSet),
|
||||
ctime: now,
|
||||
flags: make(map[UserMode]bool),
|
||||
server: server,
|
||||
socket: &socket,
|
||||
account: &NoAccount,
|
||||
nickString: "*", // * is used until actual nick is given
|
||||
nickMaskString: "*", // * is used until actual nick is given
|
||||
}
|
||||
if isTLS {
|
||||
client.flags[TLS] = true
|
||||
|
Loading…
Reference in New Issue
Block a user