]> jfr.im git - solanum.git/commitdiff
modules/m_oper.c: give a better error message for failure to find o:line
authorAaron Jones <redacted>
Wed, 4 Oct 2023 18:54:05 +0000 (18:54 +0000)
committerStephen Bennett <redacted>
Mon, 6 Nov 2023 14:47:16 +0000 (14:47 +0000)
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_oper.c

index 4c734f7c9a2794ef658a7bf74709ed06e2fb8f70..58fb9eaa1b6ff2030ddc8cc8857f9e5f6ba40c0e 100644 (file)
@@ -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;