forked from External/ergo
Re-enable MaxLine
This commit is contained in:
parent
3db6c9472b
commit
63fde2d62a
2 changed files with 12 additions and 2 deletions
|
|
@ -529,8 +529,11 @@ func LoadConfig(filename string) (config *Config, err error) {
|
|||
}
|
||||
config.Server.WebIRC = newWebIRC
|
||||
// process limits
|
||||
if config.Limits.LineLen.Tags < 512 || config.Limits.LineLen.Rest < 512 {
|
||||
return nil, ErrLineLengthsTooSmall
|
||||
if config.Limits.LineLen.Tags < 512 {
|
||||
config.Limits.LineLen.Tags = 512
|
||||
}
|
||||
if config.Limits.LineLen.Rest < 512 {
|
||||
config.Limits.LineLen.Rest = 512
|
||||
}
|
||||
var newLogConfigs []logger.LoggingConfig
|
||||
for _, logConfig := range config.Logging {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue