server: Add configurable NICKLEN and CHANNELLEN

This commit is contained in:
Daniel Oaks 2016-08-12 22:20:32 +10:00
parent d810033a02
commit a5911ad14c
4 changed files with 27 additions and 4 deletions

View file

@ -14,8 +14,10 @@ import (
var (
// regexps
ChannelNameExpr = regexp.MustCompile(`^[&!#+][\pL\pN]{1,63}$`)
NicknameExpr = regexp.MustCompile("^[\\pL\\pN\\pP\\pS]{1,32}$")
// these get replaced with real regexes at server load time
ChannelNameExpr = regexp.MustCompile("^$")
NicknameExpr = regexp.MustCompile("^$")
)
// Names are normalized and canonicalized to remove formatting marks