modules/core/m_message: Flood notices now global

To ease centralized management.
This commit is contained in:
Sam Dodrill 2014-04-10 20:29:11 -07:00
parent a5e296e4eb
commit f5945c6972
1 changed files with 4 additions and 0 deletions

View File

@ -961,6 +961,10 @@ flood_attack_client(int p_or_n, struct Client *source_p, struct Client *target_p
source_p->name, source_p->username, source_p->name, source_p->username,
source_p->orighost, source_p->orighost,
source_p->servptr->name, target_p->name); source_p->servptr->name, target_p->name);
sendto_server(NULL, NULL, CAP_TS6, NOCAPS,
":%s ENCAP * SNOTE b :Possible Flooder %s[%s@%s] on %s target: %s",
me.id, source_p->name, source_p->username, source_p->orighost,
source_p->servptr->name, target_p->name);
target_p->flood_noticed = 1; target_p->flood_noticed = 1;
/* add a bit of penalty */ /* add a bit of penalty */
target_p->received_number_of_privmsgs += 2; target_p->received_number_of_privmsgs += 2;