From 51c207dc80d3369f944d9062487489ac20074b83 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 20 Jun 2021 14:12:13 -0400 Subject: [PATCH] fix #1703 `WHOWAS :` should return an error numeric instead of an empty response --- irc/handlers.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/irc/handlers.go b/irc/handlers.go index e3fb2fe1..64bb7574 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -3422,9 +3422,6 @@ func whowasHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respo //} cnick := client.Nick() for _, nickname := range nicknames { - if len(nickname) == 0 { - continue - } results := server.whoWas.Find(nickname, count) if len(results) == 0 { rb.Add(nil, server.name, ERR_WASNOSUCHNICK, cnick, utils.SafeErrorParam(nickname), client.t("There was no such nickname"))