# HG changeset patch # User Kim Alvefur # Date 1514674421 -3600 # Node ID ff1666716d1066aef64243c124ea78f3caca3784 # Parent 08f6b9d37a4903aa5e1113cb628fcadd424f2b2a mod_firewall: Make SUBSCRIBED match for stanzas sent to self (fixes #1052) diff -r 08f6b9d37a49 -r ff1666716d10 mod_firewall/conditions.lib.lua --- a/mod_firewall/conditions.lib.lua Fri Dec 29 16:28:47 2017 +0100 +++ b/mod_firewall/conditions.lib.lua Sat Dec 30 23:53:41 2017 +0100 @@ -116,8 +116,8 @@ end function condition_handlers.SUBSCRIBED() - return "(to_node and rostermanager.is_contact_subscribed(to_node, to_host, bare_from))", - { "rostermanager", "split_to", "bare_from" }; + return "(bare_to == bare_from or to_node and rostermanager.is_contact_subscribed(to_node, to_host, bare_from))", + { "rostermanager", "split_to", "bare_to", "bare_from" }; end function condition_handlers.PAYLOAD(payload_ns)