mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-26 05:49:25 +01:00
strings: Only allow # channels, since we only implement those
This commit is contained in:
parent
5a8e7709b2
commit
842f0d05ab
@ -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 != "" {
|
||||
|
Loading…
Reference in New Issue
Block a user