3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

client: Fix crash from not having right line lengths computed

This commit is contained in:
Daniel Oaks 2017-10-29 05:04:32 +00:00
parent c6b6a25906
commit 384e6e1720

View File

@ -100,6 +100,7 @@ func NewClient(server *Server, conn net.Conn, isTLS bool) *Client {
nickCasefolded: "*", nickCasefolded: "*",
nickMaskString: "*", // * is used until actual nick is given nickMaskString: "*", // * is used until actual nick is given
} }
client.recomputeMaxlens()
if isTLS { if isTLS {
client.flags[TLS] = true client.flags[TLS] = true