1
0
Fork 0
forked from External/ergo

use utils.StringSet in more places

This commit is contained in:
Shivaram Lingamneni 2020-08-22 22:43:21 -04:00
parent c8e2dcb1e9
commit 1dd0c432fd
4 changed files with 6 additions and 6 deletions

View file

@ -381,7 +381,7 @@ func (am *AccountManager) Register(client *Client, account string, callbackNames
return errAccountCreation
}
if restrictedCasefoldedNicks[casefoldedAccount] || restrictedSkeletons[skeleton] {
if restrictedCasefoldedNicks.Has(casefoldedAccount) || restrictedSkeletons.Has(skeleton) {
return errAccountAlreadyRegistered
}