make MaxLineLen configurable

This commit is contained in:
Shivaram Lingamneni 2021-05-24 00:38:47 -04:00
parent 297f2af827
commit 7c5a8f2013
7 changed files with 30 additions and 5 deletions

View file

@ -31,8 +31,8 @@ import (
)
const (
// maximum line length not including tags; don't change this for a public server
MaxLineLen = 512
// maximum IRC line length, not including tags
DefaultMaxLineLen = 512
// IdentTimeout is how long before our ident (username) check times out.
IdentTimeout = time.Second + 500*time.Millisecond
@ -61,6 +61,10 @@ const (
PingCoalesceThreshold = time.Second
)
var (
MaxLineLen = DefaultMaxLineLen
)
// Client is an IRC client.
type Client struct {
account string