mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-23 11:32:02 -08:00
fix an edge case in configurable nickname reservation
This commit is contained in:
parent
b80df0885f
commit
efc0ce3b81
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ func (clients *ClientManager) SetNick(client *Client, newNick string) error {
|
||||||
if currentNewEntry != nil && currentNewEntry != client {
|
if currentNewEntry != nil && currentNewEntry != client {
|
||||||
return errNicknameInUse
|
return errNicknameInUse
|
||||||
}
|
}
|
||||||
if method == NickReservationStrict && reservedAccount != client.Account() {
|
if method == NickReservationStrict && reservedAccount != "" && reservedAccount != client.Account() {
|
||||||
return errNicknameReserved
|
return errNicknameReserved
|
||||||
}
|
}
|
||||||
clients.removeInternal(client)
|
clients.removeInternal(client)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue