changeset 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 79b4a1db7a57
children bea0ef13575c
files mod_firewall/actions.lib.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_firewall/actions.lib.lua	Wed Apr 03 18:27:55 2013 +0100
+++ b/mod_firewall/actions.lib.lua	Wed Apr 03 19:41:00 2013 +0200
@@ -112,8 +112,8 @@
 		reroute = ("newstanza.attr.to = %q; core_post_stanza(session, newstanza)"):format(to);
 		deps[#deps+1] = "core_post_stanza";
 	end
-	return ([[local newstanza = st.%s; %s; %s; ]])
-		:format(make_new, reroute, drop and "return true" or ""), deps;
+	return ([[local newstanza = st.%s; %s; %s ]])
+		:format(make_new, reroute, drop and "return true;" or ""), deps;
 end
 	
 function action_handlers.BOUNCE(with)