X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/d7cff1d11ba8b6a5eb393911b8edda125b2f9bbb..24335dd6a3a37b52b92911144ddd3b5a11f77280:/modules/core/m_error.c diff --git a/modules/core/m_error.c b/modules/core/m_error.c index 5a5bd67..df19a14 100644 --- a/modules/core/m_error.c +++ b/modules/core/m_error.c @@ -85,7 +85,6 @@ is_safe_error(const char *message) * although this is called internally from other functions * --msa * - * parv[0] = sender prefix * parv[*] = parameters */ int @@ -96,8 +95,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;