# HG changeset patch # User Kim Alvefur # Date 1522870808 -7200 # Node ID 0fb95dc11bc8029dac2c90292a4686da11f39cef # Parent 032589c801d7ab42b9fc9b5de7b4d6539a3a80af mod_firewall: Handle unsubcription action correctly (fixes #1119) diff -r 032589c801d7 -r 0fb95dc11bc8 mod_firewall/actions.lib.lua --- a/mod_firewall/actions.lib.lua Wed Apr 04 21:59:00 2018 +0100 +++ b/mod_firewall/actions.lib.lua Wed Apr 04 21:40:08 2018 +0200 @@ -229,8 +229,10 @@ end function action_handlers.UNSUBSCRIBE_SENDER() - return "rostermanager.unsubscribed(to_node, to_host, bare_from)", - { "rostermanager", "split_to", "bare_to", "bare_from" }; + return "rostermanager.unsubscribed(to_node, to_host, bare_from);\ + rostermanager.roster_push(to_node, to_host, bare_from);\ + core_post_stanza(session, st.presence({ from = bare_to, to = bare_from, type = \"unsubscribed\" }));", + { "rostermanager", "core_post_stanza", "st", "split_to", "bare_to", "bare_from" }; end return action_handlers;