Do not log ERROR messages from unknowns.
from ircd-ratbox (androsyn)
This commit is contained in:
parent
463947ad90
commit
0a849a8fa9
1 changed files with 5 additions and 2 deletions
|
@ -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] : "<>";
|
para = (parc > 1 && *parv[1] != '\0') ? parv[1] : "<>";
|
||||||
|
|
||||||
|
if (IsAnyServer(client_p))
|
||||||
|
{
|
||||||
ilog(L_SERVER, "Received ERROR message from %s: %s",
|
ilog(L_SERVER, "Received ERROR message from %s: %s",
|
||||||
log_client_name(source_p, SHOW_IP), para);
|
log_client_name(source_p, SHOW_IP), para);
|
||||||
|
}
|
||||||
|
|
||||||
if(is_safe_error(para))
|
if(is_safe_error(para))
|
||||||
hideit = 0;
|
hideit = 0;
|
||||||
|
|
Loading…
Reference in a new issue