From 842f0d05ab107c582139fb1669675e0e918b4f5e Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Sat, 13 Aug 2016 20:53:56 +1000 Subject: [PATCH] strings: Only allow # channels, since we only implement those --- irc/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/server.go b/irc/server.go index 88bda7ba..f488dfc9 100644 --- a/irc/server.go +++ b/irc/server.go @@ -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 != "" {