Mercurial > prosody-modules
changeset 2605:8908d001faf3
mod_firewall: spam-blocking.pfw: Allow groupchat messages and presence to offline full JIDs
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 06 Mar 2017 15:39:47 +0000 (2017-03-06) |
parents | 08f2d2a61af8 |
children | 538c54d2dab3 |
files | mod_firewall/scripts/spam-blocking.pfw |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_firewall/scripts/spam-blocking.pfw Mon Mar 06 01:05:38 2017 +0100 +++ b/mod_firewall/scripts/spam-blocking.pfw Mon Mar 06 15:39:47 2017 +0000 @@ -91,6 +91,12 @@ JUMP CHAIN=user/spam_check_message_custom +# Type 'groupchat' messages addressed to an offline full JID are harmless, +# and should be routed normally to handle MUC 'ghosts' correctly +TO: <*>@<*>/<*> +TYPE: groupchat +PASS. + # Non-chat message types often generate pop-ups in clients, # so we won't accept them from strangers NOT TYPE: chat @@ -107,6 +113,11 @@ JUMP CHAIN=user/spam_check_presence_custom +# Presence to offline full JIDs is harmless, and should be routed +# normally to handle MUC 'ghosts' correctly +TO: <*>@<*>/<*> +PASS. + # These may be received if rosters get out of sync and are harmless # because they will not be routed to the client unless necessary TYPE: unsubscribe|unsubscribed