filter: drop messages if we're ACT_KILLing them

This commit is contained in:
Ed Kellett 2018-08-09 14:53:54 +01:00
parent 86ee00db91
commit d09c55338f
No known key found for this signature in database
GPG key ID: CB9986DEF342FABC

View file

@ -313,7 +313,7 @@ filter_msg_user(void *data_)
text);
unsigned r = match_message(check_buffer);
rb_free(text);
if (r & ACT_DROP) {
if (r & (ACT_DROP | ACT_KILL)) {
data->approved = 1;
}
if (r & ACT_ALARM) {
@ -350,7 +350,7 @@ filter_msg_channel(void *data_)
text);
unsigned r = match_message(check_buffer);
rb_free(text);
if (r & ACT_DROP) {
if (r & (ACT_DROP | ACT_KILL)) {
data->approved = 1;
}
if (r & ACT_ALARM) {