filter: kill last or we can't send the snote

This commit is contained in:
Ed Kellett 2018-08-08 22:10:02 +01:00
parent a2d9c49410
commit 6a14bf789b
No known key found for this signature in database
GPG key ID: CB9986DEF342FABC

View file

@ -312,14 +312,14 @@ filter_msg_user(void *data_)
if (r & ACT_DROP) {
data->approved = 1;
}
if (r & ACT_KILL) {
exit_client(NULL, s, s, "Excess flood");
}
if (MyClient(s) && r & ACT_ALARM) {
sendto_realops_snomask_from(SNO_GENERAL, L_ALL | L_NETWIDE, s->servptr,
sendto_realops_snomask(SNO_GENERAL, L_ALL | L_NETWIDE,
"FILTER: %s!%s@%s [%s]",
s->name, s->username, s->host, s->sockhost);
}
if (r & ACT_KILL) {
exit_client(NULL, s, s, "Excess flood");
}
}
void
@ -345,14 +345,14 @@ filter_msg_channel(void *data_)
if (r & ACT_DROP) {
data->approved = 1;
}
if (r & ACT_KILL) {
exit_client(NULL, s, s, "Excess flood");
}
if (MyClient(s) && r & ACT_ALARM) {
sendto_realops_snomask_from(SNO_GENERAL, L_ALL | L_NETWIDE, s->servptr,
sendto_realops_snomask(SNO_GENERAL, L_ALL | L_NETWIDE,
"FILTER: %s!%s@%s [%s]",
s->name, s->username, s->host, s->sockhost);
}
if (r & ACT_KILL) {
exit_client(NULL, s, s, "Excess flood");
}
}
void