forked from External/ergo
Require that server names must be hostnames, and nicks cannot be hostnames
This commit is contained in:
parent
9ac09a7027
commit
77bf7173ff
3 changed files with 32 additions and 0 deletions
|
|
@ -47,6 +47,10 @@ func (name Name) IsNickname() bool {
|
|||
strings.Contains(namestr, "!") || strings.Contains(namestr, "@") {
|
||||
return false
|
||||
}
|
||||
// names that look like hostnames are restricted to servers, as with other ircds
|
||||
if IsHostname(namestr) {
|
||||
return false
|
||||
}
|
||||
return NicknameExpr.MatchString(namestr)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue