]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Do not log ERROR messages from unknowns.
authorJilles Tjoelker <redacted>
Fri, 16 Jan 2009 23:23:02 +0000 (00:23 +0100)
committerJilles Tjoelker <redacted>
Fri, 16 Jan 2009 23:23:02 +0000 (00:23 +0100)
from ircd-ratbox (androsyn)

modules/core/m_error.c

index 5a5bd67a6ae4e6077dc79ebf949ce6ef4c70fd45..108b38bf0bac70832e0fb52f5fed15e41aa55eed 100644 (file)
@@ -96,8 +96,11 @@ m_error(struct Client *client_p, struct Client *source_p, int parc, const char *
 
        para = (parc > 1 && *parv[1] != '\0') ? parv[1] : "<>";
 
-       ilog(L_SERVER, "Received ERROR message from %s: %s",
-            log_client_name(source_p, SHOW_IP), para);
+       if (IsAnyServer(client_p))
+       {
+               ilog(L_SERVER, "Received ERROR message from %s: %s",
+                    log_client_name(source_p, SHOW_IP), para);
+       }
 
        if(is_safe_error(para))
                hideit = 0;