mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-01 16:39:26 +01:00
names: Allow more characters in channel names -- from jlatt/ergonomadic#39 <3
This commit is contained in:
parent
a177ca36b1
commit
2ab8d4cb6e
@ -100,7 +100,7 @@ func NewServer(config *Config) *Server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//TODO(dan): Hot damn this is an ugly hack. Fix it properly at some point.
|
//TODO(dan): Hot damn this is an ugly hack. Fix it properly at some point.
|
||||||
ChannelNameExpr = regexp.MustCompile(fmt.Sprintf(`^[#][\pL\pN]{1,%d}$`, config.Limits.ChannelLen))
|
ChannelNameExpr = regexp.MustCompile(fmt.Sprintf(`^[#][\pL\pN\pP\pS]{1,%d}$`, config.Limits.ChannelLen))
|
||||||
NicknameExpr = regexp.MustCompile(fmt.Sprintf("^[\\pL\\pN\\pP\\pS]{1,%d}$", config.Limits.NickLen))
|
NicknameExpr = regexp.MustCompile(fmt.Sprintf("^[\\pL\\pN\\pP\\pS]{1,%d}$", config.Limits.NickLen))
|
||||||
|
|
||||||
if config.Server.Password != "" {
|
if config.Server.Password != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user