Software /
code /
prosody-modules
Changeset
2996:0fb95dc11bc8
mod_firewall: Handle unsubcription action correctly (fixes #1119)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 04 Apr 2018 21:40:08 +0200 |
parents | 2995:032589c801d7 |
children | 2997:97b30fec709c |
files | mod_firewall/actions.lib.lua |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;