3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

strings: Only allow # channels, since we only implement those

This commit is contained in:
Daniel Oaks 2016-08-13 20:53:56 +10:00
parent 5a8e7709b2
commit 842f0d05ab

View File

@ -96,7 +96,7 @@ func NewServer(config *Config) *Server {
}
//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]{1,%d}$`, config.Limits.ChannelLen))
NicknameExpr = regexp.MustCompile(fmt.Sprintf("^[\\pL\\pN\\pP\\pS]{1,%d}$", config.Limits.NickLen))
if config.Server.Password != "" {