Skip to content

Commit

Permalink
modules/m_oper.c: give a better error message for failure to find o:line
Browse files Browse the repository at this point in the history
The snotice sent to other opers can be misleading. For example, it will say
host mismatch even if the host is correct but the username is wrong, or if
the oper name given does not exist in the configuration.
  • Loading branch information
aaronmdjones authored and spb committed Nov 6, 2023
1 parent 3b24363 commit fd241b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/m_oper.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ m_oper(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
if(ConfigFileEntry.failed_oper_notice)
{
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
"Failed OPER attempt - host mismatch by %s (%s@%s)",
source_p->name, source_p->username, source_p->host);
"Failed OPER attempt - user@host mismatch or no operator block for %s by %s (%s@%s)",
name, source_p->name, source_p->username, source_p->host);
}

return;
Expand Down

0 comments on commit fd241b5

Please sign in to comment.