1
0
Fork 0
forked from External/ergo

be more pedantic about distinguishing skeletons and casefolds

This commit is contained in:
Shivaram Lingamneni 2019-05-24 13:09:56 -04:00
parent a6164cd9c4
commit 8794740f89
5 changed files with 37 additions and 18 deletions

View file

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