comparison mod_firewall/actions.lib.lua @ 949:b729414b4bf1

mod_firewall/actions: Move semicolon as to not produce two in a row. (Not legal in Lua)
author Kim Alvefur <zash@zash.se>
date Wed, 03 Apr 2013 19:41:00 +0200
parents c91cac3b823f
children bea0ef13575c
comparison
equal deleted inserted replaced
948:79b4a1db7a57 949:b729414b4bf1
110 local reroute, deps = "session.send(newstanza)", { "st" }; 110 local reroute, deps = "session.send(newstanza)", { "st" };
111 if to then 111 if to then
112 reroute = ("newstanza.attr.to = %q; core_post_stanza(session, newstanza)"):format(to); 112 reroute = ("newstanza.attr.to = %q; core_post_stanza(session, newstanza)"):format(to);
113 deps[#deps+1] = "core_post_stanza"; 113 deps[#deps+1] = "core_post_stanza";
114 end 114 end
115 return ([[local newstanza = st.%s; %s; %s; ]]) 115 return ([[local newstanza = st.%s; %s; %s ]])
116 :format(make_new, reroute, drop and "return true" or ""), deps; 116 :format(make_new, reroute, drop and "return true;" or ""), deps;
117 end 117 end
118 118
119 function action_handlers.BOUNCE(with) 119 function action_handlers.BOUNCE(with)
120 local error = with and with:match("^%S+") or "service-unavailable"; 120 local error = with and with:match("^%S+") or "service-unavailable";
121 local error_type = error:match(":(%S+)"); 121 local error_type = error:match(":(%S+)");