modules/m_challenge.c: log correct mechanism
I suspect this is a copy/paste omission when duplicating the code from modules/m_oper.c when it was created.
This commit is contained in:
parent
f718aed2ae
commit
c790520218
1 changed files with 5 additions and 5 deletions
|
@ -188,7 +188,7 @@ m_challenge(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sou
|
||||||
if(oper_p == NULL)
|
if(oper_p == NULL)
|
||||||
{
|
{
|
||||||
sendto_one_numeric(source_p, ERR_NOOPERHOST, form_str(ERR_NOOPERHOST));
|
sendto_one_numeric(source_p, ERR_NOOPERHOST, form_str(ERR_NOOPERHOST));
|
||||||
ilog(L_FOPER, "FAILED OPER (%s) by (%s!%s@%s) (%s)",
|
ilog(L_FOPER, "FAILED CHALLENGE (%s) by (%s!%s@%s) (%s)",
|
||||||
source_p->user->opername, source_p->name,
|
source_p->user->opername, source_p->name,
|
||||||
source_p->username, source_p->host,
|
source_p->username, source_p->host,
|
||||||
source_p->sockhost);
|
source_p->sockhost);
|
||||||
|
@ -206,7 +206,7 @@ m_challenge(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sou
|
||||||
|
|
||||||
oper_up(source_p, oper_p);
|
oper_up(source_p, oper_p);
|
||||||
|
|
||||||
ilog(L_OPERED, "OPER %s by %s!%s@%s (%s)",
|
ilog(L_OPERED, "CHALLENGE %s by %s!%s@%s (%s)",
|
||||||
source_p->user->opername, source_p->name,
|
source_p->user->opername, source_p->name,
|
||||||
source_p->username, source_p->host, source_p->sockhost);
|
source_p->username, source_p->host, source_p->sockhost);
|
||||||
return;
|
return;
|
||||||
|
@ -220,7 +220,7 @@ m_challenge(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sou
|
||||||
if(oper_p == NULL)
|
if(oper_p == NULL)
|
||||||
{
|
{
|
||||||
sendto_one_numeric(source_p, ERR_NOOPERHOST, form_str(ERR_NOOPERHOST));
|
sendto_one_numeric(source_p, ERR_NOOPERHOST, form_str(ERR_NOOPERHOST));
|
||||||
ilog(L_FOPER, "FAILED OPER (%s) by (%s!%s@%s) (%s)",
|
ilog(L_FOPER, "FAILED CHALLENGE (%s) by (%s!%s@%s) (%s)",
|
||||||
parv[1], source_p->name,
|
parv[1], source_p->name,
|
||||||
source_p->username, source_p->host, source_p->sockhost);
|
source_p->username, source_p->host, source_p->sockhost);
|
||||||
|
|
||||||
|
@ -258,14 +258,14 @@ m_challenge(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sou
|
||||||
if (source_p->certfp == NULL || rb_strcasecmp(source_p->certfp, oper_p->certfp))
|
if (source_p->certfp == NULL || rb_strcasecmp(source_p->certfp, oper_p->certfp))
|
||||||
{
|
{
|
||||||
sendto_one_numeric(source_p, ERR_NOOPERHOST, form_str(ERR_NOOPERHOST));
|
sendto_one_numeric(source_p, ERR_NOOPERHOST, form_str(ERR_NOOPERHOST));
|
||||||
ilog(L_FOPER, "FAILED OPER (%s) by (%s!%s@%s) (%s) -- client certificate fingerprint mismatch",
|
ilog(L_FOPER, "FAILED CHALLENGE (%s) by (%s!%s@%s) (%s) -- client certificate fingerprint mismatch",
|
||||||
parv[1], source_p->name,
|
parv[1], source_p->name,
|
||||||
source_p->username, source_p->host, source_p->sockhost);
|
source_p->username, source_p->host, source_p->sockhost);
|
||||||
|
|
||||||
if(ConfigFileEntry.failed_oper_notice)
|
if(ConfigFileEntry.failed_oper_notice)
|
||||||
{
|
{
|
||||||
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
|
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
|
||||||
"Failed OPER attempt - client certificate fingerprint mismatch by %s (%s@%s)",
|
"Failed CHALLENGE attempt - client certificate fingerprint mismatch by %s (%s@%s)",
|
||||||
source_p->name, source_p->username, source_p->host);
|
source_p->name, source_p->username, source_p->host);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue