forked from External/ergo
Merge pull request #1241 from slingamn/restricted_stringset
use utils.StringSet in more places
This commit is contained in:
commit
60db9536f4
4 changed files with 6 additions and 6 deletions
|
|
@ -165,7 +165,7 @@ func (clients *ClientManager) SetNick(client *Client, session *Session, newNick
|
|||
return "", errNicknameInvalid, false
|
||||
}
|
||||
|
||||
if restrictedCasefoldedNicks[newCfNick] || restrictedSkeletons[newSkeleton] {
|
||||
if restrictedCasefoldedNicks.Has(newCfNick) || restrictedSkeletons.Has(newSkeleton) {
|
||||
return "", errNicknameInvalid, false
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue