modules/m_oper: Prevent password guessing

Change the message for an invalid OPER password to "No appropriate
operator blocks were found for your host".
This commit is contained in:
Sam Dodrill 2013-11-05 16:23:51 -08:00
parent 74289701af
commit 06bfe138d2
1 changed files with 1 additions and 2 deletions

View File

@ -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,