mod_firewall/actions.lib.lua
changeset 959 6ef334596276
parent 958 843795020701
child 960 d773a51af9b1
--- 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+%] ?", "");