From d09c55338feb5627da978058432a15dccec16907 Mon Sep 17 00:00:00 2001 From: Ed Kellett Date: Thu, 9 Aug 2018 14:53:54 +0100 Subject: [PATCH] filter: drop messages if we're ACT_KILLing them --- modules/filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/filter.c b/modules/filter.c index ff14b302..32b712c7 100644 --- a/modules/filter.c +++ b/modules/filter.c @@ -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) {