Software /
code /
prosody-modules
Diff
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 |
parent | 947:c91cac3b823f |
child | 950:bea0ef13575c |
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)