mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-12 15:53:31 -07:00
fix an edge case in configurable nickname reservation
This commit is contained in:
@@ -129,7 +129,7 @@ func (clients *ClientManager) SetNick(client *Client, newNick string) error {
|
||||
if currentNewEntry != nil && currentNewEntry != client {
|
||||
return errNicknameInUse
|
||||
}
|
||||
if method == NickReservationStrict && reservedAccount != client.Account() {
|
||||
if method == NickReservationStrict && reservedAccount != "" && reservedAccount != client.Account() {
|
||||
return errNicknameReserved
|
||||
}
|
||||
clients.removeInternal(client)
|
||||
|
||||
Reference in New Issue
Block a user