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
1 changed files with 1 additions and 1 deletions

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 != "" {