mod_firewall/actions.lib.lua
changeset 950 bea0ef13575c
parent 949 b729414b4bf1
child 957 9b21b91c2d96
equal deleted inserted replaced
949:b729414b4bf1 950:bea0ef13575c
   133 	end
   133 	end
   134 	return route_modify(("error_reply(stanza, %s, %s, %s)"):format(error_type, error, text), nil, true);
   134 	return route_modify(("error_reply(stanza, %s, %s, %s)"):format(error_type, error, text), nil, true);
   135 end
   135 end
   136 
   136 
   137 function action_handlers.REDIRECT(where)
   137 function action_handlers.REDIRECT(where)
   138 	return route_modify("clone(stanza)", where, true, true);
   138 	return route_modify("clone(stanza)", where, true);
   139 end
   139 end
   140 
   140 
   141 function action_handlers.COPY(where)
   141 function action_handlers.COPY(where)
   142 	return route_modify("clone(stanza)", where, true, false);
   142 	return route_modify("clone(stanza)", where, false);
   143 end
   143 end
   144 
   144 
   145 function action_handlers.LOG(string)
   145 function action_handlers.LOG(string)
   146 	local level = string:match("^%[(%a+)%]") or "info";
   146 	local level = string:match("^%[(%a+)%]") or "info";
   147 	string = string:gsub("^%[%a+%] ?", "");
   147 	string = string:gsub("^%[%a+%] ?", "");