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:
parent
c6b6a25906
commit
384e6e1720
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user