From 06bfe138d2d4a3bc26d8c2eec2344e3f21b10b4e Mon Sep 17 00:00:00 2001 From: Sam Dodrill Date: Tue, 5 Nov 2013 16:23:51 -0800 Subject: [PATCH] modules/m_oper: Prevent password guessing Change the message for an invalid OPER password to "No appropriate operator blocks were found for your host". --- modules/m_oper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/m_oper.c b/modules/m_oper.c index b403b28..d3f9672 100644 --- a/modules/m_oper.c +++ b/modules/m_oper.c @@ -144,8 +144,7 @@ m_oper(struct Client *client_p, struct Client *source_p, int parc, const char *p } else { - sendto_one(source_p, form_str(ERR_PASSWDMISMATCH), - me.name, source_p->name); + sendto_one_numeric(source_p, ERR_NOOPERHOST, form_str(ERR_NOOPERHOST)); ilog(L_FOPER, "FAILED OPER (%s) by (%s!%s@%s) (%s)", name, source_p->name, source_p->username, source_p->host,