Make DNSBL hits snote on hit. The snote displays nick, IP and what DNSBL they hit.
This commit is contained in:
parent
b25b4a7c5a
commit
40114db23c
|
@ -451,6 +451,11 @@ register_local_user(struct Client *client_p, struct Client *source_p, const char
|
||||||
sendto_one_notice(source_p, ":*** Your IP address %s is listed in %s",
|
sendto_one_notice(source_p, ":*** Your IP address %s is listed in %s",
|
||||||
source_p->sockhost, source_p->preClient->dnsbl_listed->host);
|
source_p->sockhost, source_p->preClient->dnsbl_listed->host);
|
||||||
source_p->preClient->dnsbl_listed->hits++;
|
source_p->preClient->dnsbl_listed->hits++;
|
||||||
|
|
||||||
|
sendto_realops_snomask(SNO_GENERAL, L_ALL,
|
||||||
|
"%s [%s] is being disconnected due to being listed in DNS Blacklist %s",
|
||||||
|
source_p->name, source_p->sockhost, source_p->preClient->dnsbl_listed->host);
|
||||||
|
|
||||||
add_reject(source_p, NULL, NULL);
|
add_reject(source_p, NULL, NULL);
|
||||||
exit_client(client_p, source_p, &me, "*** Banned (DNS blacklist)");
|
exit_client(client_p, source_p, &me, "*** Banned (DNS blacklist)");
|
||||||
return CLIENT_EXITED;
|
return CLIENT_EXITED;
|
||||||
|
|
Loading…
Reference in New Issue