fix: limit nick length to 64 characters

There's no sane reason to have a nick longer than this, and extremely long nicks actually cause a DoS exploit.
This commit is contained in:
amyavi 2025-03-25 23:29:59 -03:00
parent c64dcd5b2a
commit 4688964901
Signed by: amy
SSH key fingerprint: SHA256:CoLIqZWDYPZEhs1j1HQWwV0j1JhC3BFWcaUF7ZLZHJA

View file

@ -31,7 +31,7 @@ ops-name-color: 'c'
nickname-prefix: ''
# The maximum length allowed in nicknames. The nickname prefix is not included in this.
max-nick-length: 99999
max-nick-length: 64
# The regex pattern used to determine if a requested nickname should be allowed for use.
# If the a requested nickname does not matched this pattern, the nickname will be rejected.