changeset 959:6ef334596276

mod_firewall/actions: Add REPLY
author Matthew Wild <mwild1@gmail.com>
date Fri, 05 Apr 2013 18:06:32 +0100
parents 843795020701
children d773a51af9b1
files mod_firewall/actions.lib.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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+%] ?", "");