From 384e6e1720a645fe666c4746c66070d204774ca1 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Sun, 29 Oct 2017 05:04:32 +0000 Subject: [PATCH] client: Fix crash from not having right line lengths computed --- irc/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/irc/client.go b/irc/client.go index 49a4a803..5dcef5e6 100644 --- a/irc/client.go +++ b/irc/client.go @@ -100,6 +100,7 @@ func NewClient(server *Server, conn net.Conn, isTLS bool) *Client { nickCasefolded: "*", nickMaskString: "*", // * is used until actual nick is given } + client.recomputeMaxlens() if isTLS { client.flags[TLS] = true