3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-22 03:49:27 +01:00

Up identlen default to 20

This commit is contained in:
Daniel Oaks 2019-02-04 05:01:46 +10:00
parent cfbb4361dc
commit 151002e232
2 changed files with 2 additions and 2 deletions

View File

@ -494,7 +494,7 @@ func LoadConfig(filename string) (config *Config, err error) {
}
//dan: automagically fix identlen until a few releases in the future (from now, 0.12.0), being a newly-introduced limit
if config.Limits.IdentLen < 1 {
config.Limits.IdentLen = 10
config.Limits.IdentLen = 20
}
if config.Limits.NickLen < 1 || config.Limits.ChannelLen < 2 || config.Limits.AwayLen < 1 || config.Limits.KickLen < 1 || config.Limits.TopicLen < 1 {
return nil, ErrLimitsAreInsane

View File

@ -416,7 +416,7 @@ limits:
nicklen: 32
# identlen is the max ident length allowed
identlen: 10
identlen: 20
# channellen is the max channel length allowed
channellen: 64