Mercurial > prosody-modules
diff mod_firewall/actions.lib.lua @ 2560:fda47e2135e5
mod_firewall: Fix compilation error when last action modifies stanza route
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 24 Feb 2017 09:48:45 +0000 |
parents | 2b533a7b5236 |
children | 0116672348c4 |
line wrap: on
line diff
--- a/mod_firewall/actions.lib.lua Fri Feb 24 09:48:16 2017 +0000 +++ b/mod_firewall/actions.lib.lua Fri Feb 24 09:48:45 2017 +0000 @@ -126,7 +126,7 @@ deps[#deps+1] = "core_post_stanza"; end return ([[local newstanza = st.%s; %s;%s]]) - :format(make_new, reroute, drop and " return true;" or ""), deps; + :format(make_new, reroute, drop and " do return true end" or ""), deps; end function action_handlers.BOUNCE(with)