From 3b24363e9174d3c07c863ff39f794383f377101d Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Wed, 4 Oct 2023 18:52:47 +0000 Subject: [PATCH] modules/m_challenge.c: give a better error message for failure to find o:line 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. --- modules/m_challenge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/m_challenge.c b/modules/m_challenge.c index 75fd7306..6ea23e94 100644 --- a/modules/m_challenge.c +++ b/modules/m_challenge.c @@ -226,8 +226,8 @@ m_challenge(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sou if(ConfigFileEntry.failed_oper_notice) sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, - "Failed CHALLENGE attempt - host mismatch by %s (%s@%s)", - source_p->name, source_p->username, source_p->host); + "Failed CHALLENGE attempt - user@host mismatch or no operator block for %s by %s (%s@%s)", + parv[1], source_p->name, source_p->username, source_p->host); return; }