Browse Source

client: Fix crash from not having right line lengths computed

tags/v0.10.1
Daniel Oaks 6 years ago
parent
commit
384e6e1720
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      irc/client.go

+ 1
- 0
irc/client.go View File

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

Loading…
Cancel
Save