From c3fcb435156da6b97e24e5e3bbc6ce13eff03a37 Mon Sep 17 00:00:00 2001 From: "kayos@tcp.direct" Date: Sat, 19 Mar 2022 12:49:49 -0700 Subject: [PATCH] Security: fix oper enumeration Signed-off-by: kayos@tcp.direct --- irc/handlers.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/irc/handlers.go b/irc/handlers.go index 855c880d..a4d899a1 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -2196,10 +2196,8 @@ func operHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respons } if !checkPassed || checkFailed { - rb.Add(nil, server.name, ERR_PASSWDMISMATCH, client.Nick(), client.t("Password incorrect")) - // #951: only disconnect them if we actually tried to check a password for them if passwordFailed { - client.Quit(client.t("Password incorrect"), rb.session) + client.Quit(client.t("Nice try, dummy"), rb.session) return true } else { return false