forked from External/ergo
server: Add configurable NICKLEN and CHANNELLEN
This commit is contained in:
parent
d810033a02
commit
a5911ad14c
4 changed files with 27 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue