3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-23 11:12:44 +01:00
`WHOWAS :` should return an error numeric instead of an empty response
This commit is contained in:
Shivaram Lingamneni 2021-06-20 14:12:13 -04:00
parent 6786b87fbd
commit 51c207dc80

View File

@ -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"))