From 7201f14b8bc5fbb890e8ebf6d8cde9ce99016573 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 24 Apr 2022 00:31:20 -0400 Subject: [PATCH] partial fix for #1933 If the nickname must equal the account name (because always-on or force-nick-equals-account), the correct error response to an empty or otherwise invalid nickname is the usual "You must use your account name as your nickname". --- irc/client_lookup_set.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/client_lookup_set.go b/irc/client_lookup_set.go index 2256c4f9..c97c89ff 100644 --- a/irc/client_lookup_set.go +++ b/irc/client_lookup_set.go @@ -117,7 +117,7 @@ func (clients *ClientManager) SetNick(client *Client, session *Session, newNick } if useAccountName { - if registered && newNick != accountName && newNick != "" { + if registered && newNick != accountName { return "", errNickAccountMismatch, false } newNick = accountName