mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
make MaxLineLen configurable
This commit is contained in:
parent
297f2af827
commit
7c5a8f2013
7 changed files with 30 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue