# HG changeset patch # User Matthew Wild # Date 1365181592 -3600 # Node ID 6ef3345962762df7d68cfcaf14787bd7ad9274f6 # Parent 843795020701dab23c455c2cd854ff1eb86baaa1 mod_firewall/actions: Add REPLY diff -r 843795020701 -r 6ef334596276 mod_firewall/actions.lib.lua --- a/mod_firewall/actions.lib.lua Fri Apr 05 18:06:10 2013 +0100 +++ b/mod_firewall/actions.lib.lua Fri Apr 05 18:06:32 2013 +0100 @@ -145,6 +145,10 @@ return route_modify("clone(stanza)", where, false); end +function action_handlers.REPLY(with) + return route_modify(("reply(stanza):body(%q)"):format(with)); +end + function action_handlers.LOG(string) local level = string:match("^%[(%a+)%]") or "info"; string = string:gsub("^%[%a+%] ?", "");