explicitly show IP in SNO_BANNED snotes

This commit is contained in:
jess 2021-10-09 22:45:22 +01:00 committed by GitHub
parent e7ab04fc74
commit 78825899cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -129,8 +129,8 @@ check_new_user(void *vdata)
}
sendto_realops_snomask(SNO_BANNED, L_NETWIDE,
"Rejecting K-Lined user %s [%s@%s]",
get_client_name(source_p, HIDE_IP), aconf->user, aconf->host);
"Rejecting K-Lined user %s [%s] (%s@%s)", get_client_name(source_p, HIDE_IP),
show_ip(NULL, source_p) ? source_p->sockhost : "255.255.255.255", aconf->user, aconf->host);
notify_banned_client(source_p, aconf, K_LINED);
}

View file

@ -368,8 +368,8 @@ verify_access(struct Client *client_p, const char *username)
get_user_ban_reason(aconf));
sendto_realops_snomask(SNO_BANNED, L_NETWIDE,
"Rejecting K-Lined user %s [%s@%s]",
get_client_name(client_p, HIDE_IP), aconf->user, aconf->host);
"Rejecting K-Lined user %s [%s] (%s@%s)", get_client_name(client_p, HIDE_IP),
show_ip(NULL, client_p) ? client_p->sockhost : "255.255.255.255", aconf->user, aconf->host);
add_reject(client_p, aconf->user, aconf->host, aconf, NULL);
return (BANNED_CLIENT);
}

View file

@ -597,8 +597,8 @@ register_local_user(struct Client *client_p, struct Client *source_p)
{
ServerStats.is_ref++;
sendto_realops_snomask(SNO_BANNED, L_NETWIDE,
"Rejecting X-Lined user %s [%s]",
get_client_name(client_p, HIDE_IP), xconf->host);
"Rejecting X-Lined user %s [%s] (%s)", get_client_name(source_p, HIDE_IP),
show_ip(NULL, source_p) ? source_p->sockhost : "255.255.255.255", xconf->host);
add_reject(source_p, xconf->host, NULL, NULL, NULL);
exit_client(client_p, source_p, &me, "Bad user info");