Browse Source

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

tags/v0.1.0
Daniel Oaks 8 years ago
parent
commit
842f0d05ab
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      irc/server.go

+ 1
- 1
irc/server.go View File

@@ -96,7 +96,7 @@ func NewServer(config *Config) *Server {
96 96
 	}
97 97
 
98 98
 	//TODO(dan): Hot damn this is an ugly hack. Fix it properly at some point.
99
-	ChannelNameExpr = regexp.MustCompile(fmt.Sprintf(`^[&!#+][\pL\pN]{1,%d}$`, config.Limits.ChannelLen))
99
+	ChannelNameExpr = regexp.MustCompile(fmt.Sprintf(`^[#][\pL\pN]{1,%d}$`, config.Limits.ChannelLen))
100 100
 	NicknameExpr = regexp.MustCompile(fmt.Sprintf("^[\\pL\\pN\\pP\\pS]{1,%d}$", config.Limits.NickLen))
101 101
 
102 102
 	if config.Server.Password != "" {

Loading…
Cancel
Save