mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 10:42:52 +01:00
make the land-grab check case-insensitive
This commit is contained in:
parent
44a0770215
commit
7786043275
@ -311,7 +311,7 @@ func (am *AccountManager) Register(client *Client, account string, callbackNames
|
||||
// as an account; this prevents "land-grab" situations where someone else
|
||||
// registers your nick out from under you and then NS GHOSTs you
|
||||
// n.b. client is nil during a SAREGISTER:
|
||||
if config.NickReservation.Enabled && client != nil && client.Nick() != account {
|
||||
if config.NickReservation.Enabled && client != nil && client.NickCasefolded() != casefoldedAccount {
|
||||
return errAccountMustHoldNick
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user