Diff

mod_firewall/actions.lib.lua @ 959:6ef334596276

mod_firewall/actions: Add REPLY
author Matthew Wild <mwild1@gmail.com>
date Fri, 05 Apr 2013 18:06:32 +0100
parent 958:843795020701
child 960:d773a51af9b1
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+%] ?", "");