From a13b19f9feeb2cfe01f0b1ac05f54b791bb9432c Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sat, 17 Jan 2009 00:23:02 +0100 Subject: [PATCH] Do not log ERROR messages from unknowns. from ircd-ratbox (androsyn) --- modules/core/m_error.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/core/m_error.c b/modules/core/m_error.c index 5a5bd67..108b38b 100644 --- a/modules/core/m_error.c +++ b/modules/core/m_error.c @@ -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;