filter: kill last or we can't send the snote
This commit is contained in:
parent
a2d9c49410
commit
6a14bf789b
1 changed files with 8 additions and 8 deletions
|
@ -312,14 +312,14 @@ filter_msg_user(void *data_)
|
||||||
if (r & ACT_DROP) {
|
if (r & ACT_DROP) {
|
||||||
data->approved = 1;
|
data->approved = 1;
|
||||||
}
|
}
|
||||||
if (r & ACT_KILL) {
|
|
||||||
exit_client(NULL, s, s, "Excess flood");
|
|
||||||
}
|
|
||||||
if (MyClient(s) && r & ACT_ALARM) {
|
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]",
|
"FILTER: %s!%s@%s [%s]",
|
||||||
s->name, s->username, s->host, s->sockhost);
|
s->name, s->username, s->host, s->sockhost);
|
||||||
}
|
}
|
||||||
|
if (r & ACT_KILL) {
|
||||||
|
exit_client(NULL, s, s, "Excess flood");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -345,14 +345,14 @@ filter_msg_channel(void *data_)
|
||||||
if (r & ACT_DROP) {
|
if (r & ACT_DROP) {
|
||||||
data->approved = 1;
|
data->approved = 1;
|
||||||
}
|
}
|
||||||
if (r & ACT_KILL) {
|
|
||||||
exit_client(NULL, s, s, "Excess flood");
|
|
||||||
}
|
|
||||||
if (MyClient(s) && r & ACT_ALARM) {
|
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]",
|
"FILTER: %s!%s@%s [%s]",
|
||||||
s->name, s->username, s->host, s->sockhost);
|
s->name, s->username, s->host, s->sockhost);
|
||||||
}
|
}
|
||||||
|
if (r & ACT_KILL) {
|
||||||
|
exit_client(NULL, s, s, "Excess flood");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue