From c1591030b0df9d0119e828323946ca418b23fbe9 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 15 Apr 2019 00:15:10 +0200 Subject: [PATCH] mod_spam_filter: Don't filter MUC messages --- mod_spam_filter/src/mod_spam_filter.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod_spam_filter/src/mod_spam_filter.erl b/mod_spam_filter/src/mod_spam_filter.erl index 262cf94..8cfd5e0 100644 --- a/mod_spam_filter/src/mod_spam_filter.erl +++ b/mod_spam_filter/src/mod_spam_filter.erl @@ -233,7 +233,8 @@ s2s_receive_packet({drop, _State} = Acc) -> s2s_receive_packet({#message{from = From, to = #jid{lserver = LServer} = To, type = Type, body = Body} = Msg, - State} = Acc) when Type /= error -> + State} = Acc) when Type /= groupchat, + Type /= error -> case needs_checking(From, To) of true -> case check_from(LServer, From) of